Skip to content

Release workflow

Release workflow #52

Workflow file for this run

name: Release workflow
on:
release:
types: [ published ]
jobs:
test:
uses: ./.github/workflows/tests.yml
publish-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Extract tag
id: get_tag
run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/}
env:
GITHUB_REF: ${{ github.ref }}
- run: ./scripts/publish.sh ${{ steps.get_tag.outputs.TAG }}
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}