Skip to content

Commit 3d9e88c

Browse files
committed
chore: publish workflows
1 parent 80e605d commit 3d9e88c

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release to NPM Canary
2+
3+
on: workflow_dispatch
4+
5+
concurrency: ${{ github.workflow }}-${{ github.ref }}
6+
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
- uses: pnpm/action-setup@v4
17+
with:
18+
version: 9
19+
20+
- name: Install dependencies
21+
run: pnpm build:prepare
22+
- name: Build
23+
run: pnpm build
24+
25+
- name: Publish to npm Canary
26+
run: pnpm run version && pnpm changeset publish --tag canary
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/publish.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ jobs:
3636
title: "chore: bump packages version"
3737
commit: "chore: bump packages version"
3838
version: pnpm run version
39-
# This expects you to have a script called release which does a build for your packages and calls changeset publish
40-
publish: pnpm run publish
39+
publish: pnpm changeset publish
4140
env:
4241
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4342
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)