diff --git a/.github/workflows/publish-npm.yaml b/.github/workflows/publish-npm.yaml new file mode 100644 index 0000000..46f62ea --- /dev/null +++ b/.github/workflows/publish-npm.yaml @@ -0,0 +1,19 @@ +name: Publish NPM package +on: workflow_dispatch +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + - name: install dependencies + run: yarn install --frozen-lockfile + - name: build + run: yarn build + - name: publish + run: cd ./dist/ngx-translate-mock && npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}