Skip to content

ci: 👷setup automated npm publish & 0.0.2 #1

ci: 👷setup automated npm publish & 0.0.2

ci: 👷setup automated npm publish & 0.0.2 #1

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
publish:
name: Publish to NPM
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v1
with:
name: build
path: build
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
access: public
token: ${{ secrets.NPM_TOKEN }}