Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit 70d1bcd

Browse files
committed
update workflow
1 parent e8c2065 commit 70d1bcd

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313

1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
1617

1718
jobs:
1819
build-image:

.github/workflows/publish.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Publish Package to npmjs
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: 'Version to publish'
10+
required: true
11+
default: '0.0.0'
612

713
jobs:
814
publish:
@@ -11,13 +17,18 @@ jobs:
1117
steps:
1218
- name: Checkout
1319
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
ref: ${{ github.event.inputs.version }}
1423
- uses: actions/setup-node@v4
1524
with:
1625
node-version-file: ".nvmrc"
1726
- name: Download artifact
1827
run: |
19-
$runid=$(gh run list -w build.yml -s success -c $GITHUB_SHA --json databaseId -q ".[0].databaseId")
28+
runid=$(gh run list -w build.yml -s success -c $GITHUB_SHA --json databaseId -q ".[0].databaseId")
2029
gh run download $runid -n libxmlwasm.tgz
30+
env:
31+
GH_TOKEN: ${{ github.token }}
2132
- name: Unpack artifact
2233
run: |
2334
tar axf libxmlwasm.tgz

0 commit comments

Comments
 (0)