diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 752f558..a4d8d63 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,11 +13,10 @@ jobs: node-version-file: .nvmrc cache: npm cache-dependency-path: package-lock.json - registry-url: 'https://registry.npmjs.org' - run: npm ci - run: npm run build ngx-intl - - run: | - cd dist/ngx-intl - npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm run prepublishOnly + - uses: JS-DevTools/npm-publish@v2 + with: + token: ${{ secrets.NPM_TOKEN }} + package: dist/ngx-intl/package.json diff --git a/projects/ngx-intl/src/lib/intl-date.pipe.ts b/projects/ngx-intl/src/lib/intl-date.pipe.ts index 074879d..14c149c 100644 --- a/projects/ngx-intl/src/lib/intl-date.pipe.ts +++ b/projects/ngx-intl/src/lib/intl-date.pipe.ts @@ -46,7 +46,7 @@ export const INTL_DATE_PRESET_FULL_TIME: IntlDateOptions = { hour: 'numeric', minute: 'numeric', second: 'numeric', timeZoneName: 'long' }; /** - * A pipe that formats a date using the Intl.DateTimeFormat API + * A pipe that formats a date using the Intl.DateTimeFormat API. */ @Pipe({ name: 'intlDate',