File tree 1 file changed +23
-19
lines changed
1 file changed +23
-19
lines changed Original file line number Diff line number Diff line change 2
2
push :
3
3
branches :
4
4
- main
5
- name : Build, Test and Publish
5
+ name : Publish to NPM
6
6
jobs :
7
7
publish :
8
8
name : Publish
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@v3
12
- - name : Use Node.js 18
13
- uses : actions/setup-node@v3
14
- with :
15
- node-version : ' 18.x'
16
- always-auth : true
17
- - name : Install Yarn
18
- run : npm install -g yarn
19
- - name : Install dependencies
20
- run : yarn
21
- - name : Build
22
- run : yarn build
23
- - name : Test
24
- run : yarn test
25
- - name : Publish
26
- env :
27
- NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
28
- run : yarn publish --access public
11
+ - uses : actions/checkout@v3
12
+ - name : Use Node.js 18
13
+ uses : actions/setup-node@v3
14
+ with :
15
+ node-version : ' 18.x'
16
+ always-auth : true
17
+ - name : Install Yarn
18
+ run : npm install -g yarn
19
+ - name : Install dependencies
20
+ run : yarn
21
+ - name : Build
22
+ run : yarn build
23
+ - name : Setup .yarnrc.yml
24
+ run : |
25
+ yarn config set npmAuthToken $NPM_AUTH_TOKEN
26
+ yarn config set npmAlwaysAuth true
27
+ env :
28
+ NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
29
+ - name : Publish
30
+ env :
31
+ NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
32
+ run : yarn npm publish --access public
You can’t perform that action at this time.
0 commit comments