0.9.3 #8
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
on: | |
release: | |
types: [ created ] | |
name: npm release pipeline | |
jobs: | |
publish-npm: | |
name: Publish NPM Job | |
runs-on: ubuntu-latest | |
steps: | |
- name: echo ref | |
run: | | |
echo "Ref ${{ github.ref }}" | |
echo "Ref ${{ github }}" | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: npm setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: npm install | |
run: | | |
npm ci --slient | |
- name: npm build | |
run: | | |
npm run build:prod --silent | |
- name: npm publish | |
run: | | |
npm publish --ignore-scripts --loglevel verbose | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |