Skip to content

Change CI

Change CI #16

Workflow file for this run

name: Package publish
on:
push:
tags:
- "*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 17
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" && git config user.name "github-actions[bot]"
- run: npm version ${GITHUB_REF##*/}
- run: npm run build
- run: git add .
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git push origin HEAD:master
env:
github-token: ${{ secrets.GITHUB_TOKEN }}