Skip to content

fix release workflow #8

fix release workflow

fix release workflow #8

Workflow file for this run

name: Release NPM Package
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm install
- name: Install latest npm
run: npm install -g npm@latest
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_SECRET }}
run: npm publish