-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c45e69a
commit 00d9b9a
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Snapshot release | ||
run-name: Snapshot release by ${{ github.actor }} | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.actor }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
snapshot-release: | ||
if: ${{ startsWith(github.event.comment.body, '!snapshot') && github.repository == 'clerk/javascript' && github.event.issue.pull_request }} | ||
runs-on: ubuntu-latest | ||
timeout-minutes: ${{ vars.TIMEOUT_MINUTES_NORMAL && fromJSON(vars.TIMEOUT_MINUTES_NORMAL) || 10 }} | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
cache: 'npm' | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: refs/pull/${{ github.event.issue.number }}/head | ||
|
||
- name: Install NPM Dependencies | ||
run: npm ci --audit=false --fund=false --prefer-offline | ||
shell: bash | ||
|
||
- name: Version packages for snapshot | ||
id: version-packages | ||
run: npm run version:snapshot | tail -1 >> "$GITHUB_OUTPUT" | ||
|
||
- name: Build astro-clerk-auth | ||
if: steps.version-packages.outputs.success == '1' | ||
timeout-minutes: 5 | ||
run: npx turbo build --filter='astro-clerk-auth' | ||
|
||
- name: Snapshot release | ||
if: steps.version-packages.outputs.success == '1' | ||
run: npm run release:snapshot | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_CONFIG_PROVENANCE: true |
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