Skip to content

Release

Release #125

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
branch:
description: "Branch to release"
required: true
default: "main"
env:
HUSKY: 0
CI: true
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: production release
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies and build
run: npm ci && npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_NPM_MATTERLABS_AUTOMATION_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_NPM_MATTERLABS_AUTOMATION_TOKEN }}
run: npx semantic-release