Skip to content

rewrite

rewrite #33

Workflow file for this run

name: release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- id: get_tag
run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: sed -i 's/0.0.1/${{ steps.get_tag.outputs.TAG }}/g' package.json
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}