Skip to content

Commit

Permalink
ci: change permissions construction location
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbae0 committed Mar 23, 2024
1 parent ff8b72d commit f7a0e0d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
- publish
# types: closed

permissions:
contents: write # for checkout and tag
pull-requests: write # for comments
packages: write # for publish

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write # for checkout and tag
pull-requests: write # for comments
packages: write # for publish

steps:
- uses: actions/checkout@v1
with:
Expand Down Expand Up @@ -59,7 +61,7 @@ jobs:
git_commit_sha: ${{ github.sha }}
git_tag_prefix: "v"
- name: Publish to Github Registry
run: pnpm run publish from-package --yes --no-verify-access
run: pnpm run publish from-package --yes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
Expand Down

0 comments on commit f7a0e0d

Please sign in to comment.