docs: show release workflow of main (#616) #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
- beta | |
- alpha | |
jobs: | |
review: | |
name: Review | |
uses: ./.github/workflows/review.yml | |
release: | |
name: Release | |
needs: [review] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- name: Audit Signatures | |
# `rm -rf ./docs/node_modules` is necessary due to aliased dependencies breaking signatures | |
run: | | |
rm -rf ./docs/node_modules | |
npm audit signatures | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_ORG_TOKEN }} | |
run: yarn semantic-release |