Skip to content

Commit

Permalink
Set version when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Oct 4, 2024
1 parent 3f02340 commit 8d6c3b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/publish-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,14 @@ jobs:
branch: ${{ inputs.release_type == 'Dry Run' && 'main' || github.ref_name }}
artifacts: sdk-internal

- name: Set version
run: |
npm version --no-git-tag-version ${{ inputs.version }}
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish NPM
if: ${{ inputs.release_type != 'Dry Run' }}
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: languages/js/sdk-internal
7 changes: 1 addition & 6 deletions languages/js/sdk-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
"bitwarden_wasm_internal_bg.wasm.js",
"bitwarden_wasm_internal.d.ts",
"bitwarden_wasm_internal.js",
"index.js",
"node/bitwarden_wasm_internal.wasm",
"node/bitwarden_wasm_internal.wasm.d.ts",
"node/bitwarden_wasm_internal.d.ts",
"node/bitwarden_wasm_internal.js"
"index.js"
],
"main": "node/bitwarden_wasm_internal.js",
"module": "index.js",
"types": "bitwarden_wasm_internal.d.ts",
"scripts": {},
Expand Down

0 comments on commit 8d6c3b2

Please sign in to comment.