Skip to content

release

release #16

Workflow file for this run

# This workflow will publish a new release to npm and Github
# For more information, see: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs
name: release
on:
workflow_run:
workflows: ["ci"]
types: ["completed"]
jobs:
release:
name: Publish a release to npm and Github
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18]
os: [ubuntu-latest]
steps:
- name: Checkout the full history
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2.2.4
with:
version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Release
run: pnpx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}