File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,24 @@ jobs:
12
12
id : release
13
13
with :
14
14
release-type : node
15
- package-name : test-release-please
15
+ package-name : ' @cryptlex/web-api-client '
16
16
17
17
# Publish to NPM
18
+ # If statements ensure that release is published to registries only when a new release is created.
18
19
- uses : actions/checkout@v3
19
- # If statements ensure that release is published to registries only when a new release is created.
20
20
if : ${{ steps.release.outputs.release_created }}
21
21
- uses : actions/setup-node@v3
22
+ if : ${{ steps.release.outputs.release_created }}
22
23
with :
23
24
node-version : 16
24
25
registry-url : " https://registry.npmjs.org"
26
+ - name : Build library
25
27
if : ${{ steps.release.outputs.release_created }}
26
- - run : npm ci
27
- - run : npm run build
28
+ run : |
29
+ npm ci
30
+ npm run build
31
+ - name : NPM Publish
28
32
if : ${{ steps.release.outputs.release_created }}
29
- - run : npm publish
33
+ run : npm publish
30
34
env :
31
35
NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
32
- if : ${{ steps.release.outputs.release_created }}
You can’t perform that action at this time.
0 commit comments