File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 28
28
uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
29
29
with :
30
30
node-version : 18
31
+ registry-url : " https://npm.pkg.github.com"
31
32
cache : " npm"
32
33
33
34
- name : Install dependencies
56
57
name : sdk-bitwarden-wasm
57
58
path : ${{ github.workspace }}/languages/js/wasm/*
58
59
if-no-files-found : error
60
+
61
+ - name : Set version
62
+ if : ${{ github.ref == 'refs/head/main' }}
63
+ # Fetches current version from registry and uses prerelease to bump it
64
+ run : |
65
+ npm version --no-git-tag-version $(npm view @bitwarden/sdk-wasm@latest version)
66
+ npm version --no-git-tag-version prerelease
67
+ env :
68
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69
+ working-directory : languages/js/wasm
70
+
71
+ - name : Publish NPM
72
+ if : ${{ github.ref == 'refs/head/main' }}
73
+ run : npm publish --access public
74
+ env :
75
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76
+ working-directory : languages/js/wasm
You can’t perform that action at this time.
0 commit comments