Skip to content

Commit

Permalink
fix: publish permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Feb 5, 2025
1 parent 1842342 commit eafa9af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm

- name: Checkout repository
uses: actions/checkout@v4
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ jobs:

publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup .npmrc file to publish to npm
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22
node-version: '22'
cache: npm
- name: Install modules
run: npm ci
- name: Build
Expand Down

0 comments on commit eafa9af

Please sign in to comment.