Skip to content

Commit 28afc0e

Browse files
committed
chore: update GitHub Actions workflow to include permissions and authentication for package publishing
1 parent 0a27992 commit 28afc0e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ jobs:
6868
runs-on: ubuntu-latest
6969
continue-on-error: false
7070
if: needs.release.outputs.releaseReady == 'true'
71+
permissions:
72+
contents: read
73+
packages: write
7174
steps:
7275
- name: Cancel previous jobs
7376
uses: styfle/[email protected]
@@ -90,6 +93,11 @@ jobs:
9093
package-manager: "pnpm"
9194
scope: "@macpaw"
9295

96+
- name: Authenticate with GitHub Packages
97+
run: |
98+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
99+
echo "@macpaw:registry=https://npm.pkg.github.com/" >> ~/.npmrc
100+
93101
- name: Publish to Github Registry
94102
id: changesets
95103
uses: changesets/action@v1

0 commit comments

Comments
 (0)