Skip to content

release

release #118

Workflow file for this run

name: release
on:
workflow_run:
workflows: ['test']
branches: [master]
types: [completed]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node Active LTS
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'npm'
- name: Install Deps
run: npm ci
- name: Build & Release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm run build
npm run release