Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

release

release #102

Workflow file for this run

name: release
on:
workflow_call:
secrets:
NPM_TOKEN:
required: true
workflow_run:
workflows: ["package-tests"]
branches: [main]
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install dependencies
run: yarn
- name: Build package
run: yarn build
- name: Publish package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release