Skip to content

Commit

Permalink
Add next Snapshot Release job
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiazya committed Jun 13, 2024
1 parent 1cdb160 commit 62a8c23
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,28 @@ jobs:
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
outputs:
published: ${{ steps.changesets.outputs.published }}

prerelease:
name: Prerelease
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
needs: release
# if repository is github.com/kamiazya/typedoc-plugin-mermaid
# and branch is main
# and release job dosen't publish package to npm
# then run this job
if: ${{ github.repository == 'kamiazya/typedoc-plugin-mermaid' && github.ref == 'refs/heads/main' && github.event_name == 'push' && needs.release.outputs.published == 'false' }}
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup
uses: ./.github/actions/setup
- name: Snapshot Release @next
uses: ./.github/actions/snapshot-release
with:
tag: next
name: next
github-token: ${{ secrets.GITHUB_TOKEN }}
npm-token: ${{ secrets.NODE_AUTH_TOKEN }}

0 comments on commit 62a8c23

Please sign in to comment.