File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 types : [published]
55
66jobs :
7- prepare :
8- permissions :
9- contents : write
10- runs-on : ubuntu-latest
11- steps :
12- - uses : actions/checkout@v4
13- with :
14- token : ${{ secrets.GITHUB_TOKEN }}
15- ssh-key : ${{ secrets.MERGE_BYPASS_KEY }}
16- ref : ${{ github.event.repository.default_branch }}
17- - name : Setup Node.js
18- uses : actions/setup-node@v4
19- with :
20- node-version : 24
21- registry-url : https://registry.npmjs.org
22- - name : Install dependencies
23- run : npm ci
24- - name : Configure git
25- run : |
26- git config --local user.email "github-actions@github.com"
27- git config --local user.name "GitHub Actions"
28- - name : Update package.json with release tag
29- run : |
30- TAG="${{ github.event.release.tag_name }}"
31- echo "Updating package.json version to $TAG"
32- npm version "$TAG"
33- - name : Commit and push version update
34- run : |
35- TAG="${{ github.event.release.tag_name }}"
36- git add package.json package-lock.json
37- git commit -m "Update package.json to version $TAG"
38- git push origin ${{ github.event.repository.default_branch }}
39- git push origin tag $TAG --force
40- env :
41- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42-
437 publish-npm :
44- needs : prepare
458 permissions :
469 id-token : write
4710 contents : read
5720 - run : npm run release
5821
5922 publish-github :
60- needs : prepare
6123 runs-on : ubuntu-latest
6224 permissions :
6325 contents : read
You can’t perform that action at this time.
0 commit comments