Skip to content

Commit

Permalink
Add permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Aug 22, 2023
1 parent b32eb86 commit 2abd1df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Release
on: push
concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
pull-requests: write

jobs:
release:
name: Release
Expand Down Expand Up @@ -33,8 +36,7 @@ jobs:
- name: Create Release Pull Request
uses: changesets/action@v1
with:
publish: npm run release
version: npm version
version: npm run version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"main": "index.js",
"private": true,
"scripts": {
"release": "changeset version && npm run prerelease --workspaces --if-present",
"version": ""
"version": "changeset version && npm run prerelease --workspaces --if-present"
},
"workspaces": [
"packages/*"
Expand Down

0 comments on commit 2abd1df

Please sign in to comment.