Skip to content

Commit

Permalink
Revert "CI: Update workflows to use permissions rather than PAT" (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw authored Jan 12, 2023
1 parent 975c238 commit ddbed7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,12 @@ jobs:
needs: test
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
name: Release packages
permissions:
contents: write
pull-requests: write
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}

- name: Prepare repository
run: git fetch --unshallow --tags
Expand All @@ -75,7 +72,7 @@ jobs:

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
run: yarn release
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
deploy:
name: Deploy docs to GitHub Pages
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -34,7 +32,7 @@ jobs:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./docusaurus/website/build
# The following lines assign commit authorship to the official
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
paths:
- '.github/workflows/deploy.yml'
- '.github/workflows/test-build.yml'
- '.github/workflows/test-deploy.yml'
- 'docusaurus/**'

jobs:
Expand Down

0 comments on commit ddbed7f

Please sign in to comment.