Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .github/workflows/next.yml

This file was deleted.

32 changes: 29 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,18 @@ 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:
build:
publish-release:
if: github.event_name == 'release'

runs-on: ubuntu-latest

permissions:
Expand All @@ -20,5 +29,22 @@ jobs:
- run: npm run build --workspaces
- name: Publish
run: ./scripts/publish-npm.sh
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

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