mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-06 22:59:44 +00:00
Update publish_npm.yaml
Signed-off-by: zhanghengxin <812718649@qq.com>
This commit is contained in:
parent
5afd0ed94f
commit
b8a49402ed
4
.github/workflows/publish_npm.yaml
vendored
4
.github/workflows/publish_npm.yaml
vendored
@ -19,10 +19,10 @@ jobs:
|
|||||||
node-version: 16
|
node-version: 16
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
|
|
||||||
- run: git -h
|
- run: git tag --sort=-creatordate | head -n 1
|
||||||
- name: Get version
|
- name: Get version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo "VERSION=$( git describe --tags `git rev-list --tags --max-count=1` )" >> $GITHUB_OUTPUT
|
run: echo "VERSION=$( git tag --sort=-creatordate | head -n 1 )" >> $GITHUB_OUTPUT
|
||||||
- name: Get commit id
|
- name: Get commit id
|
||||||
id: get_commit_id
|
id: get_commit_id
|
||||||
run: echo "COMMIT_ID=$( git rev-parse --short "$GITHUB_SHA" )" >> $GITHUB_OUTPUT
|
run: echo "COMMIT_ID=$( git rev-parse --short "$GITHUB_SHA" )" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user