test release #14
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: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 # Use the latest version | |
- name: Setup Node | |
uses: actions/setup-node@v4 # Use the latest version | |
with: | |
node-version: '20' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies and build 🔧 | |
run: npm install && npm run build # Changed npm ci to npm install | |
- name: Publish package on NPM 📦 | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
env: | |
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true |