Skip to content

Commit 258fd4a

Browse files
committedSep 5, 2024
ci: setup nightly release
1 parent f27c389 commit 258fd4a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎.github/workflows/ci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
id-token: write
13+
1114
jobs:
1215
ci:
1316
runs-on: ubuntu-latest
@@ -24,3 +27,13 @@ jobs:
2427
- run: pnpm build
2528
- run: pnpm vitest --coverage
2629
- uses: codecov/codecov-action@v4
30+
- name: nightly release
31+
if: |
32+
github.event_name == 'push' &&
33+
!startsWith(github.event.head_commit.message, 'docs')
34+
run: |
35+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc &&
36+
pnpm changelogen --canary nightly --publish --publishTag 2x
37+
env:
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)