Skip to content

v1.0.1 🌈

v1.0.1 🌈 #4

Workflow file for this run

name: Publish Release
on:
release:
types: [published]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Update version
run: |
VERSION=${GITHUB_REF#refs/tags/}
npm version ${VERSION#v} --no-git-tag-version --allow-same-version
- name: Build
run: npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}