We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c70b9e commit 1771858Copy full SHA for 1771858
1 file changed
.github/workflows/main.yml
@@ -1,5 +1,7 @@
1
name: CI/CD
2
on: [push, pull_request]
3
+permissions:
4
+ contents: read
5
jobs:
6
build:
7
runs-on: ubuntu-latest
@@ -86,9 +88,11 @@ jobs:
86
88
87
89
release:
90
- env:
- GH_TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }}
91
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+ permissions:
92
+ issues: write
93
+ contents: write
94
+ pull-requests: write
95
+ deployments: write
96
needs: [build, test]
97
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta')
98
steps:
@@ -110,3 +114,6 @@ jobs:
110
114
111
115
- name: Release
112
116
run: yarn semantic-release
117
+ env:
118
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments