File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - main
5
+
6
+ name : Publish packages - main
7
+
8
+ jobs :
9
+ publish-package :
10
+ name : Publish packages
11
+ permissions : write-all
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - uses : actions/setup-node@v3
16
+ with :
17
+ node-version : " 18.x"
18
+ registry-url : https://registry.npmjs.org
19
+ - uses : actions/cache@v2
20
+ id : yarn-unplugged-cache
21
+ with :
22
+ path : |
23
+ '.yarn/unplugged/'
24
+ '.yarn/build-state.yml'
25
+ '.yarn/install-state.gz'
26
+ key : ${{ runner.os }}-yarn-v1-${{ hashFiles('**/yarn.lock') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-yarn-v1-
29
+
30
+ - name : Install unplugged dependencies and check immutable
31
+ run : |
32
+ yarn install --immutable
33
+ shell : bash
34
+
35
+ - name : Create PR or release packages
36
+ id : changesets
37
+ uses : changesets/action@v1
38
+ with :
39
+ publish : yarn release
40
+ version : yarn version
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments