File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,35 @@ name: Publish to NPM
2
2
on :
3
3
release :
4
4
types : [published]
5
+ push :
6
+ branches :
7
+ - tp/**
5
8
6
9
jobs :
7
10
publish :
8
11
runs-on : ubuntu-latest
9
12
steps :
10
13
- uses : actions/checkout@v3
14
+
15
+ - name : Parse version from tag
16
+ id : version
17
+ uses : release-kit/semver@v2
18
+ with :
19
+ fallback : ' v7.1.0-alpha+1'
20
+
11
21
- uses : actions/setup-node@v3
12
22
with :
13
23
node-version : ' 18.x'
14
24
- run : yarn install
15
25
- run : yarn test
26
+
16
27
- uses : JS-DevTools/npm-publish@v3
28
+ if : " !github.event.release.prerelease"
17
29
with :
18
30
token : ${{ secrets.NPM_TOKEN }}
19
31
access : public
32
+ dry_run : true
33
+
20
34
- name : Upload npm debug log
21
35
if : failure() # This step will run only if the previous steps failed
22
36
uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments