File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CI
22
3- permissions :
4- id-token : write
5- contents : read
6-
73on :
84 pull_request :
95 types : [opened, synchronize]
4238 run : npm run typecheck
4339 - name : Test
4440 run : npm run test
45- release :
46- runs-on : ubuntu-latest
47- needs : [test]
48- if : ${{ github.repository_owner == 'pactflow' && github.event_name == 'push' }}
49- steps :
50- - name : Checkout code
51- uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
52- - name : Setup node
53- uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
54- with :
55- node-version : 24
56- cache : npm
57- cache-dependency-path : " patches/*.patch"
58- - name : Install dependencies
59- run : npm ci --ignore-scripts && npm run patch-package
60- - name : Creating .npmrc
61- run : |
62- cat << EOF > "$HOME/.npmrc"
63- //registry.npmjs.org/:_authToken=$NPM_TOKEN
64- EOF
65- env :
66- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
67- - name : Release
68- id : changesets
69- uses : changesets/action@v1
70- with :
71- version : npm run changeset:version
72- publish : npm run changeset:publish
73- commit : " [ci] release"
74- title : " [ci] release"
75- env :
76- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41+ call-workflow :
42+ uses : pactflow/.github/.github/workflows/publish@main
Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ permissions :
4+ id-token : write
5+ contents : read
6+
7+ jobs :
8+ publish :
9+ runs-on : ubuntu-latest
10+ if : ${{ github.repository_owner == 'pactflow' && github.event_name == 'push' }}
11+ steps :
12+ - name : Checkout code
13+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
14+ - name : Setup node
15+ uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
16+ with :
17+ node-version : 24
18+ cache : npm
19+ cache-dependency-path : " patches/*.patch"
20+ - name : Install dependencies
21+ run : npm ci --ignore-scripts && npm run patch-package
22+ - name : Creating .npmrc
23+ run : |
24+ cat << EOF > "$HOME/.npmrc"
25+ //registry.npmjs.org/:_authToken=$NPM_TOKEN
26+ EOF
27+ env :
28+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
29+ - name : Release
30+ id : changesets
31+ uses : changesets/action@v1
32+ with :
33+ version : npm run changeset:version
34+ publish : npm run changeset:publish
35+ commit : " [ci] release"
36+ title : " [ci] release"
37+ env :
38+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments