Commit 326d21a 1 parent b502f7f commit 326d21a Copy full SHA for 326d21a
File tree 1 file changed +2
-18
lines changed
1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 5
5
- " v*"
6
6
7
7
jobs :
8
- build :
9
- runs-on : ubuntu-latest
8
+ publish :
9
+ runs-on : ubuntu-24.04
10
10
steps :
11
11
- uses : actions/checkout@v3
12
- with :
13
- fetch-depth : 0
14
12
- uses : actions/setup-node@v3
15
13
with :
16
14
node-version : " 20.x"
17
15
registry-url : " https://registry.npmjs.org"
18
- - name : Config Git
19
- run : |
20
- git config user.name github-actions
21
- git config user.email github-actions@github.com
22
- - name : Update version in package.json
23
- run : |
24
- VERSION=${GITHUB_REF#refs/tags/v}
25
- npm version $VERSION --no-git-tag-version
26
- - name : Commit package.json changes
27
- run : |
28
- git checkout -b temp-branch
29
- git add package.json
30
- git commit -m "Bump version to ${GITHUB_REF#refs/tags/v}"
31
- git push origin HEAD:main
32
16
- run : npm ci
33
17
- run : npm run build
34
18
- run : npm publish
You can’t perform that action at this time.
0 commit comments