Skip to content

v3.0.0

v3.0.0 #1

Workflow file for this run

name: Publish on Release
on:
release:
types:
- published
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: master
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Get Release Tag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Set git user
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Set version ${{ env.tag }}
run: |
npm version ${{ env.tag }}
git push
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}