diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d34596d71..e602020702 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,3 +40,32 @@ jobs: with: token: ${{secrets.SCALEWAY_BOT_TOKEN}} formula: scw + + wasm: + runs-on: ubuntu-latest + needs: + - goreleaser + steps: + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version: '1.21' + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 6.0.2 + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 1 + - name: Build + run: VERSION=${{ github.ref_name }} ./scripts/build-wasm.sh + - name: Configure package version + working-directory: wasm + run: pnpm version ${{ github.ref_name }} + - run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}" + env: + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + - name: Publish package + working-directory: wasm + run: pnpm publish --no-git-checks diff --git a/wasm/package.json b/wasm/package.json index 64f28afd1e..9077ca45eb 100644 --- a/wasm/package.json +++ b/wasm/package.json @@ -1,7 +1,7 @@ { "name": "@scaleway/scaleway-cli-wasm", "version": "0.0.16", - "description": "", + "description": "WASM interface for Scaleway CLI, made to be used in a JS environment", "type": "module", "main": "index.js", "scripts": { @@ -10,7 +10,7 @@ }, "types": "index.d.ts", "keywords": [], - "author": "", + "author": "Scaleway", "devDependencies": { "@vitest/browser": "^0.34.4", "prettier": "3.0.3",