File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Publish to npm
1+ name : Create release and publish to npm
22on :
33 push :
4- tags :
5- - " v[0-9]+.[0-9]+.[0-9]+"
4+ branches :
5+ - master
6+
7+ permissions :
8+ contents : write
9+ pages : write
10+ id-token : write
11+
612jobs :
7- build :
13+ release :
814 runs-on : ubuntu-latest
915 steps :
10- - uses : actions/checkout@v4
11- - uses : actions/setup-node@v4
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Node.js
20+ uses : actions/setup-node@v4
1221 with :
13- node-version : 18
14- registry-url : " https://registry.npmjs.org"
22+ node-version : 22
23+ registry-url : " https://registry.npmjs.org/"
24+
1525 - uses : pnpm/action-setup@v4
16- with :
17- version : 9.4.0
18- - run : pnpm install --frozen-lockfile
19- - run : pnpm run build
20- - run : pnpm publish --no-git-checks
26+
27+ - name : Install dependencies
28+ run : pnpm install
29+
30+ - name : Build the project
31+ run : pnpm run build
32+
33+ - name : Semantic Release 🚀
34+ id : semantic
35+ run : npx semantic-release --branches master
2136 env :
37+ GH_TOKEN : ${{ secrets.OPENINC_SEMANTIC_RELEASE }}
2238 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN_ORG_OPENINC }}
You can’t perform that action at this time.
0 commit comments