Tutorial example #6520
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: Snapshot Release | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
alpha: | |
permissions: | |
contents: read | |
id-token: write | |
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@v1 | |
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }} | |
with: | |
npmTag: alpha | |
buildScript: build | |
node-version-file: .node-version | |
secrets: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
npmToken: ${{ secrets.NODE_AUTH_TOKEN }} | |
release-candidate: | |
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@v1 | |
if: ${{ github.event.pull_request.title == 'Upcoming Release Changes' }} | |
with: | |
npmTag: rc | |
restoreDeletedChangesets: false | |
buildScript: build | |
node-version-file: .node-version | |
secrets: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
npmToken: ${{ secrets.NODE_AUTH_TOKEN }} | |
dependencies: | |
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yml@v1 | |
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }} | |
secrets: | |
githubToken: ${{ secrets.GUILD_BOT_TOKEN }} | |
with: | |
installDependencies: true | |
node-version-file: .node-version |