Skip to content

Commit

Permalink
ci(wasm): publish (#3382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Codelax authored Mar 20, 2024
1 parent 50c4ff4 commit 50fd086
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions wasm/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -10,7 +10,7 @@
},
"types": "index.d.ts",
"keywords": [],
"author": "",
"author": "Scaleway",
"devDependencies": {
"@vitest/browser": "^0.34.4",
"prettier": "3.0.3",
Expand Down

0 comments on commit 50fd086

Please sign in to comment.