Skip to content

Commit

Permalink
ci: Update release workflow tokens and permissions (#114)
Browse files Browse the repository at this point in the history
Also:
 - Upgrades release-please
 - Upgrades nodejs version (old one was EOL)
  • Loading branch information
joeyparrish authored Dec 20, 2024
1 parent 16a3bf9 commit 44e5be6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ on:
jobs:
release:
runs-on: ubuntu-latest

permissions:
# Write to "contents" is needed to create a release
contents: write
# Write to pull-requests is needed to create and update the release PR
pull-requests: write

steps:
# Create/update release PR
- uses: google-github-actions/release-please-action@v3
- uses: googleapis/release-please-action@v4
id: release
with:
# These are the necessary parameters for releasing multiple packages
Expand All @@ -29,9 +36,9 @@ jobs:

- name: Setup Node.js
if: steps.release.outputs.releases_created
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 22
registry-url: 'https://registry.npmjs.org'

- name: Publish all changed packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
# Oldest supported LTS version through current LTS
node-version: [12.x, 14.x, 16.x]
node-version: [18.x, 20.x, 22.x]
# NOTE: Old versions aren't available for mac-arm64, so we use macos-13
# (the last CI image based on x64 hardware)
os: [macos-13, windows-latest, ubuntu-latest]
Expand Down

0 comments on commit 44e5be6

Please sign in to comment.