Skip to content

upgrade CI/CD nodejs version #9

upgrade CI/CD nodejs version

upgrade CI/CD nodejs version #9

Workflow file for this run

name: NPM Publish
on:
push:
tags:
- '*'
jobs:
publish:
name: publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Use Node.js v18.19.1
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048 # tag=v3
with:
node-version: 18.19.1
cache: npm
registry-url: https://registry.npmjs.org
- name: Install Dependencies
run: |
npm install
- name: Build Library
run: npm run build
- name: Copy README
run: cp README.md ./dist/ngx-howler/
- name: Publish
run: |
npm set registry "https://registry.npmjs.org"
npm set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
for d in dist/*; do
pushd $d
npm publish
popd
done
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}