Skip to content

Commit

Permalink
ci: set explicit permissions for npm-publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Nov 7, 2023
1 parent 488586a commit 50cb74a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
name: Publish to npm
runs-on: ubuntu-latest
if: contains( github.event.pull_request.labels.*.name, '[ Type ] NPM version update' ) && startsWith( github.head_ref, 'release/') && github.event.pull_request.merged == true
permissions:
contents: write
id-token: write
steps:
- uses: Automattic/vip-actions/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/Automattic/vip.git"
"url": "https://github.com/Automattic/vip-cli"
},
"keywords": [
"cli",
Expand Down

0 comments on commit 50cb74a

Please sign in to comment.