File tree Expand file tree Collapse file tree 2 files changed +33
-15
lines changed Expand file tree Collapse file tree 2 files changed +33
-15
lines changed Original file line number Diff line number Diff line change 8
8
branches :
9
9
- main
10
10
11
- # permissions:
12
- # id-token: write
13
-
14
11
jobs :
15
12
ci :
16
13
runs-on : ubuntu-latest
28
25
- run : corepack enable
29
26
- run : pnpm install
30
27
- run : pnpm run lint
31
- - run : pnpm run build
32
-
33
- - name : nightly release
34
- if : github.ref_name == 'main' &&
35
- !contains(github.event.head_commit.message, '[skip-release]') &&
36
- !startsWith(github.event.head_commit.message, 'docs')
37
- run : |
38
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
39
- pnpm changelogen --canary nightly --publish
40
- env :
41
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
42
- NPM_CONFIG_PROVENANCE : false
Original file line number Diff line number Diff line change
1
+ name : publish
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ permissions :
9
+ id-token : write # Required for OIDC
10
+ contents : read
11
+
12
+ jobs :
13
+ ci :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - run : npm i -fg corepack && corepack enable
21
+ - uses : actions/setup-node@v4
22
+ with :
23
+ node-version : 24
24
+ cache : ' pnpm'
25
+
26
+ - run : corepack enable
27
+ - run : pnpm install
28
+ - run : pnpm run lint
29
+ - run : pnpm run build
30
+ - name : publish
31
+ run : |
32
+ pnpm changelogen --canary nightly --bump
33
+ npm publish
You can’t perform that action at this time.
0 commit comments