Skip to content

Commit 1bdf70b

Browse files
committed
chore: copy canary workflow to master
1 parent 54c5467 commit 1bdf70b

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/canary.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Canary Release
2+
3+
on:
4+
push:
5+
branches: [v10]
6+
workflow_dispatch:
7+
8+
permissions:
9+
id-token: write # Required for npm OIDC
10+
contents: read
11+
12+
jobs:
13+
canary:
14+
name: Publish canary
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repo
18+
uses: actions/checkout@v4
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
run_install: false
24+
25+
- name: Use Node 22
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: 'pnpm'
30+
registry-url: 'https://registry.npmjs.org'
31+
32+
- name: Install deps
33+
run: pnpm install
34+
35+
- name: Build
36+
run: pnpm build
37+
38+
- name: Set canary versions
39+
run: |
40+
CANARY_VERSION="10.0.0-canary.$(git rev-parse --short HEAD)"
41+
echo "Publishing canary version: $CANARY_VERSION"
42+
cd packages/fiber && npm version $CANARY_VERSION --no-git-tag-version
43+
cd ../eslint-plugin && npm version $CANARY_VERSION --no-git-tag-version
44+
cd ../test-renderer && npm version $CANARY_VERSION --no-git-tag-version
45+
46+
- name: Publish to npm
47+
run: |
48+
pnpm --filter @react-three/fiber publish --tag canary --no-git-checks --provenance
49+
pnpm --filter @react-three/eslint-plugin publish --tag canary --no-git-checks --provenance
50+
pnpm --filter @react-three/test-renderer publish --tag canary --no-git-checks --provenance

0 commit comments

Comments
 (0)