File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11name : CI/CD
22on : [push, pull_request]
3+ permissions :
4+ contents : read
35jobs :
46 build :
57 runs-on : ubuntu-latest
8688
8789 release :
8890 runs-on : ubuntu-latest
89- env :
90- GH_TOKEN : ${{ secrets.GH_PERSONAL_TOKEN }}
91- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
91+ permissions :
92+ issues : write
93+ contents : write
94+ pull-requests : write
95+ deployments : write
9296 needs : [build, test]
9397 if : github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta')
9498 steps :
@@ -110,3 +114,6 @@ jobs:
110114
111115 - name : Release
112116 run : yarn semantic-release
117+ env :
118+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
119+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments