CDP #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Continous Deployment (CDP) workflow publishes a package to NPM when a release is created | |
name: CDP | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
registry-url: https://registry.npmjs.org/ | |
- run: npm ci | |
- run: npm publish --dry-run | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |