Skip to content

Publish Release

Publish Release #153

Workflow file for this run

name: Publish
on:
release:
types: [released]
workflow_dispatch:
run-name: >-
${{
github.event_name == 'release' && 'Publish Release'
|| github.event_name == 'workflow_dispatch' && 'Publish Next'
|| 'Publish Release' }}
jobs:
publish-release:
if: github.event_name == 'release'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Prepare
uses: ./.github/actions/prepare
- name: Build
run: npm run build
- name: Publish
run: npm publish --provenance --access public
publish-next:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare
uses: ./.github/actions/prepare
- name: Build next version
run: ./scripts/build-next
- name: Publish
run: ./scripts/publish-npm-next.sh