Skip to content

Commit

Permalink
chore: should check changeset files exists before run snapshot release (
Browse files Browse the repository at this point in the history
  • Loading branch information
XGHeaven authored Nov 18, 2024
1 parent fac9889 commit e14dc87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/pr-temp.yml → .github/workflows/canary.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: PR Release
name: Publish canary

on:
pull_request:
push:
branches:
- release/**

jobs:
release:
name: Release
canary:
name: Canary
runs-on: ubuntu-latest

strategy:
Expand All @@ -28,6 +30,9 @@ jobs:
- name: Setup
run: pnpm run setup

- name: Check changeset exists
run: test "$(ls -1 .changeset | wc -l)" -gt "2"

- name: Config npm
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Version
on:
push:
branches:
- release/**
- release/next

jobs:
version:
Expand Down

0 comments on commit e14dc87

Please sign in to comment.