File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,28 @@ jobs:
19
19
- uses : actions/setup-node@v3
20
20
with :
21
21
node-version-file : ' .nvmrc'
22
-
22
+
23
23
- run : npm ci
24
24
25
+ - run : npm run package
26
+
27
+ - name : Publish if version has been updated
28
+ uses : pascalgn/npm-publish-action@1.3.9
29
+ with :
30
+ tag_name : " %s"
31
+ create_tag : " true"
32
+ commit_pattern : " ^chore: release (\\ S+)"
33
+ workspace : " ./dist/ng-tagcanvas"
34
+ publish_command : " npm"
35
+ env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+ NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
38
+
25
39
- run : npm run build -- --base-href /ng-tagcanvas/ --deploy-url /ng-tagcanvas/
26
40
27
- - name : Deploy
41
+ - name : Deploy page
28
42
uses : peaceiris/actions-gh-pages@v3
29
43
if : github.ref == 'refs/heads/master'
30
44
with :
31
45
github_token : ${{ secrets.GITHUB_TOKEN }}
32
- publish_dir : ./dist/ng-tagcanvas-example
46
+ publish_dir : ./dist/ng-tagcanvas-example
You can’t perform that action at this time.
0 commit comments