Skip to content

npm-publish

npm-publish #91

Workflow file for this run

name: npm-publish
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Setup Node 🔧
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: package-lock.json
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build && npm publish --provenance --force
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}