File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
2
push :
3
- tags :
4
- - ' v* '
3
+ branches :
4
+ - dev
5
5
permissions :
6
6
contents : write
7
7
pull-requests : write
14
14
id : release
15
15
with :
16
16
release-type : node
17
+ target-branch : dev
18
+ # The logic below handles the npm publication:
17
19
- uses : actions/checkout@v4
20
+ # these if statements ensure that a publication only occurs when
21
+ # a new release is created:
22
+ if : ${{ steps.release.outputs.release_created }}
18
23
- uses : actions/setup-node@v4
19
24
with :
20
25
node-version : 16
24
29
version : 8
25
30
- run : pnpm i
26
31
- run : pnpm build
27
- - uses : JS-DevTools/npm-publish@v3
28
- with :
29
- token : ${{ secrets.NPM_TOKEN }}
32
+ if : ${{ steps.release.outputs.release_created }}
33
+ - run : npm publish
34
+ env :
35
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
36
+ if : ${{ steps.release.outputs.release_created }}
You can’t perform that action at this time.
0 commit comments