Skip to content

Commit f8afc7b

Browse files
update version name rule and update node version
1 parent 0559188 commit f8afc7b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Diff for: .github/workflows/docker-publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker
1+
name: Docker Publish
22

33
# This workflow uses actions that are not certified by GitHub.
44
# They are provided by a third-party and are governed by
@@ -8,7 +8,7 @@ name: Docker
88
on:
99
push:
1010
# Publish semver tags as releases.
11-
tags: ["*.*.*"]
11+
tags: ["v*.*.*"]
1212

1313
env:
1414
# Use docker.io for Docker Hub if empty

Diff for: .github/workflows/npm-publish.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update Version and Publish
1+
name: Npm Publish
22

33
on:
44
release:
@@ -10,21 +10,20 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212
with:
13-
token: ${{ secrets.GITHUB_TOKEN }}
1413
ref: ${{ github.event.release.target_commitish }}
1514

1615
- name: Set up Node.js
1716
uses: actions/setup-node@v3
1817
with:
19-
node-version: "18"
18+
node-version: "22"
2019
registry-url: "https://registry.npmjs.org"
2120

2221
- name: Install dependencies
2322
run: npm ci
2423

2524
- name: Extract version from release
2625
id: extract_version
27-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
26+
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
2827

2928
- name: Update version.ts
3029
run: |

0 commit comments

Comments
 (0)