File tree Expand file tree Collapse file tree 3 files changed +31
-6
lines changed Expand file tree Collapse file tree 3 files changed +31
-6
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,17 @@ jobs:
16
16
url : ${{ steps.deployment.outputs.page_url }}
17
17
steps :
18
18
- uses : actions/checkout@v4
19
- - uses : actions/setup-node@v3
19
+ - uses : actions/setup-node@v4
20
20
with :
21
21
node-version : 20
22
22
cache : yarn
23
23
- run : yarn --frozen-lockfile
24
24
- run : yarn prepublishOnly
25
25
- run : yarn docs:build
26
- - uses : actions/configure-pages@v3
27
- - uses : actions/upload-pages-artifact@v1
26
+ - uses : actions/configure-pages@v4
27
+ - uses : actions/upload-pages-artifact@v3
28
28
with :
29
29
path : docs/.vitepress/dist
30
30
- name : Deploy
31
31
id : deployment
32
- uses : actions/deploy-pages@v1
32
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ workflow_dispatch : {}
5
+ release :
6
+ types : [published]
7
+
8
+ jobs :
9
+ publish :
10
+ runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : read
13
+ packages : write
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - uses : actions/setup-node@v4
17
+ with :
18
+ node-version : 20
19
+ registry-url : ' https://registry.npmjs.org'
20
+ cache : ' yarn'
21
+ - run : yarn --frozen-lockfile
22
+ - run : yarn test
23
+ - run : npm publish
24
+ env :
25
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v4
14
- - uses : actions/setup-node@v3
14
+ - uses : actions/setup-node@v4
15
15
with :
16
16
node-version : 20
17
17
cache : yarn
24
24
- run : yarn test:prettier
25
25
- run : yarn prepublishOnly
26
26
- run : yarn docs:build
27
- - uses : actions/upload-artifact@v3
27
+ - uses : actions/upload-artifact@v4
28
28
if : failure()
29
29
with :
30
30
name : test-output-changes
You can’t perform that action at this time.
0 commit comments