Skip to content

Release Pipeline

Release Pipeline #31

Workflow file for this run

name: Release Pipeline
on:
release:
types: [published]
jobs:
npm-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.release.target_commitish }}
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
- name: match-tag-to-package-version
uses: geritol/[email protected]
env:
TAG_PREFIX: refs/tags/v
- run: npm install
- run: npm run build
- run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
- run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}