Skip to content

Publish Package To NPM #17

Publish Package To NPM

Publish Package To NPM #17

Workflow file for this run

name: Publish Package To NPM
on:
create:
tags:
- v*
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: '@genexus/ngx-aws-deploy'
# The logic below handles the npm publication:
- uses: actions/checkout@v2
# these if statements ensure that a publication only occurs when
# a new release is created:
- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npx nx affected -t build
- run: cd dist/libs/ngx-aws-deploy
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}