Skip to content

Commit

Permalink
Explore publishing prerelease to local gh packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Apr 15, 2024
1 parent 38b4d25 commit 2dcb005
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18
registry-url: "https://npm.pkg.github.com"
cache: "npm"

- name: Install dependencies
Expand Down Expand Up @@ -56,3 +57,13 @@ jobs:
name: sdk-bitwarden-wasm
path: ${{ github.workspace }}/languages/js/wasm/*
if-no-files-found: error

- name: Set version
run: |
npm version --no-git-tag-version $(npm view @bitwarden/sdk-wasm@latest version)
npm version --no-git-tag-version prerelease
- name: Publish NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2dcb005

Please sign in to comment.