File tree Expand file tree Collapse file tree 1 file changed +2
-40
lines changed Expand file tree Collapse file tree 1 file changed +2
-40
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- workflow_dispatch :
87
98concurrency : ${{ github.workflow }}-${{ github.ref }}
109
1110jobs :
12- version :
13- name : Release
14- runs-on : ubuntu-latest
15- steps :
16- - name : Checkout Repo
17- uses : actions/checkout@v3
18- with :
19- fetch-depth : 0
20-
21- - name : Setup Node.js
22- uses : actions/setup-node@v3
23- with :
24- cache : yarn
25- node-version : lts/*
26-
27- - name : Install Dependencies
28- run : yarn
29-
30- - name : Create Release Pull Request or Publish to npm
31- id : changesets
32- uses : changesets/action@v1
33- with :
34- version : yarn version
35- env :
36- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37-
3811 release :
3912 name : Release
4013 runs-on : ubuntu-latest
41- if : ${{ github.ref == 'refs/heads/main' }}
42- needs : [version]
4314 steps :
4415 - name : Checkout Repo
4516 uses : actions/checkout@v3
46- with :
47- fetch-depth : 0
4817
49- - name : Setup Node.js
18+ - name : Setup Node.js
5019 uses : actions/setup-node@v3
5120 with :
52- cache : yarn
5321 node-version : lts/*
5422
5523 - name : Install Dependencies
5624 run : yarn
5725
58- - name : Create Release Pull Request or Publish to npm
59- id : changesets
26+ - name : Create Release Pull Request
6027 uses : changesets/action@v1
61- with :
62- version : yarn version
63- publish : yarn release
6428 env :
65- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
6629 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments