Skip to content

Commit 50fd086

Browse files
authored
ci(wasm): publish (#3382)
1 parent 50c4ff4 commit 50fd086

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/workflows/release.yml

+29
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,32 @@ jobs:
4040
with:
4141
token: ${{secrets.SCALEWAY_BOT_TOKEN}}
4242
formula: scw
43+
44+
wasm:
45+
runs-on: ubuntu-latest
46+
needs:
47+
- goreleaser
48+
steps:
49+
- name: Install Go
50+
uses: actions/setup-go@v3
51+
with:
52+
go-version: '1.21'
53+
- name: Install pnpm
54+
uses: pnpm/action-setup@v2
55+
with:
56+
version: 6.0.2
57+
- name: Checkout
58+
uses: actions/checkout@v3
59+
with:
60+
fetch-depth: 1
61+
- name: Build
62+
run: VERSION=${{ github.ref_name }} ./scripts/build-wasm.sh
63+
- name: Configure package version
64+
working-directory: wasm
65+
run: pnpm version ${{ github.ref_name }}
66+
- run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}"
67+
env:
68+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
69+
- name: Publish package
70+
working-directory: wasm
71+
run: pnpm publish --no-git-checks

wasm/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@scaleway/scaleway-cli-wasm",
33
"version": "0.0.16",
4-
"description": "",
4+
"description": "WASM interface for Scaleway CLI, made to be used in a JS environment",
55
"type": "module",
66
"main": "index.js",
77
"scripts": {
@@ -10,7 +10,7 @@
1010
},
1111
"types": "index.d.ts",
1212
"keywords": [],
13-
"author": "",
13+
"author": "Scaleway",
1414
"devDependencies": {
1515
"@vitest/browser": "^0.34.4",
1616
"prettier": "3.0.3",

0 commit comments

Comments
 (0)