Skip to content

Commit 234508e

Browse files
authored
chore(cicd): remove GH_TOKEN and add permissions (#487)
* no token needed * ??? * update dist * dist
1 parent b030aa0 commit 234508e

File tree

2 files changed

+3136
-1044
lines changed

2 files changed

+3136
-1044
lines changed

.github/workflows/package.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
name: Package distribution file
1111
runs-on: ubuntu-latest
1212
permissions:
13-
# pull-requests: read
1413
contents: write
1514
steps:
1615
- name: Init a git repo
@@ -25,8 +24,7 @@ jobs:
2524
npm test
2625
npm run package
2726
- name: Commit to PR
28-
# if: github.actor == 'dependabot[bot]'
29-
if: github.event.commits[0].author.name != 'GitHub Actions'
27+
if: github.actor == 'dependabot[bot]'
3028
env:
3129
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3230
run: |
@@ -36,7 +34,5 @@ jobs:
3634
git push
3735
- name: Check git diff
3836
if: github.actor != 'dependabot[bot]'
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4137
run: |
4238
git diff --exit-code dist/index.js

0 commit comments

Comments
 (0)