Skip to content

Release

Release #30

Workflow file for this run

name: Release
on:
push:
branches:
- master
- next
- beta
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-22.04
env:
HUSKY: 0 # Disable husky (git hooks) in CI, see: https://typicode.github.io/husky/#/?id=disable-husky-in-cidocker
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org/
cache: npm
- name: Install Dependencies
run: npm clean-install
- name: Run Tests
run: npm test
- name: Build Package
run: npm run build
- name: Release package to npm and GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release:ci