File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- " main"
7
7
release :
8
- type : [ created ]
8
+ types : [ created ]
9
+ schedule :
10
+ - cron : ' 0 6 * * 1' # At 06:00 on Monday
9
11
10
12
jobs :
11
13
build :
14
16
- uses : actions/checkout@v3
15
17
- uses : actions/setup-node@v3
16
18
with :
17
- node-version : ' v19 .1.0'
19
+ node-version : ' 19 .1.0'
18
20
npm-version : ' 9.4.2'
19
21
- name : npm install library
20
22
working-directory : ./library
33
35
run : npm run build
34
36
35
37
- name : deploy Showcase to Github Pages
38
+ if : ${{ github.event_name == 'release' }}
36
39
37
40
with :
38
41
branch : docs
50
53
- uses : actions/checkout@v3
51
54
- uses : actions/setup-node@v3
52
55
with :
53
- node-version : ' 19.x '
56
+ node-version : ' 19.1.0 '
54
57
registry-url : ' https://registry.npmjs.org'
55
58
56
59
- name : Get release version
60
63
SHORT_VERSION=${FULL_VERSION:1}
61
64
echo shortVersion=${SHORT_VERSION} >> $GITHUB_OUTPUT
62
65
66
+ - name : Update release version
67
+ working-directory : ./library
68
+ run : npm version ${{ steps.release.outputs.shortVersion }}
69
+
63
70
- name : Publish to npmjs
64
71
working-directory : ./library
65
- run : npm publish --access public --tag ${{ steps.release.outputs.shortVersion }}
72
+ run : npm publish --access public
66
73
env :
67
74
NODE_AUTH_TOKEN : ${{secrets.NPM_PUBLISH_TOKEN}}
You can’t perform that action at this time.
0 commit comments