patch #24
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
name: Publish to NPM | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 # Updated to use v2 | |
- uses: actions/setup-node@v4 # Updated to use v3 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org/' # Added for npm to configure auth | |
- name: Install Angular CLI | |
run: npm install -g @angular/cli @angular/core | |
- name: Install NPM Dependencies | |
run: npm ci | |
- name: Build project | |
run: npm run build | |
- name: Publish to NPM | |
uses: JS-DevTools/npm-publish@v3 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
package: dist/ngx-wig/package.json | |
access: public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Ensure npm can authenticate with your token |