Skip to content

Commit 326d21a

Browse files
committed
Update workflow to publish code using newer Ubuntu version
1 parent b502f7f commit 326d21a

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.github/workflows/publish.yml

+2-18
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,14 @@ on:
55
- "v*"
66

77
jobs:
8-
build:
9-
runs-on: ubuntu-latest
8+
publish:
9+
runs-on: ubuntu-24.04
1010
steps:
1111
- uses: actions/checkout@v3
12-
with:
13-
fetch-depth: 0
1412
- uses: actions/setup-node@v3
1513
with:
1614
node-version: "20.x"
1715
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
3216
- run: npm ci
3317
- run: npm run build
3418
- run: npm publish

0 commit comments

Comments
 (0)