Skip to content

Commit 8094857

Browse files
committed
fix workflow
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
1 parent d5cacb3 commit 8094857

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,16 @@ jobs:
1515
- name: Setup Wasm Pack
1616
uses: jetli/wasm-pack-action@v0.3.0
1717
- name: Build the WASM artifact
18-
env:
19-
GIT_TAG: ${{ github.ref_name }}
20-
run: |
21-
wasm-pack build --target nodejs
22-
mv pkg/nodejs_snowflake_bg.wasm pkg/nodejs_snowflake_${GIT_TAG}.wasm
18+
run: wasm-pack build --target nodejs
2319
- name: Create Release
2420
uses: ncipollo/release-action@v1
25-
env:
26-
GIT_TAG: ${{ github.ref_name }}
2721
with:
2822
generateReleaseNotes: true
29-
artifacts: "pkg/nodejs_snowflake_${GIT_TAG}.wasm"
23+
artifacts: "pkg/nodejs_snowflake.wasm"
3024
token: ${{ secrets.GITHUB_TOKEN }}
3125
- name: Publish packages to NPM
3226
env:
3327
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34-
run: wasm-pack publish
28+
run: |
29+
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
30+
wasm-pack publish

0 commit comments

Comments
 (0)