Skip to content

Commit 5e9870d

Browse files
fix: force actions to Node 24 for OIDC compatibility
Add FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env var per GH deprecation notice. Also re-add registry-url and package-manager-cache per npm docs. 🤖 Generated with Mister Maluco Co-Authored-By: MisterMal <teskeslab@lucasteske.dev>
1 parent 55d484e commit 5e9870d

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ permissions:
99
id-token: write
1010
contents: read
1111

12+
env:
13+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
14+
1215
jobs:
1316
publish:
1417
runs-on: ubuntu-latest
@@ -19,17 +22,13 @@ jobs:
1922
- uses: actions/setup-node@v4
2023
with:
2124
node-version: '24'
22-
23-
- run: |
24-
echo "npm: $(npm -v)"
25-
echo "node: $(node -v)"
26-
echo "OIDC URL: ${ACTIONS_ID_TOKEN_REQUEST_URL:+SET}"
27-
echo "OIDC TOKEN: ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:+SET}"
25+
registry-url: 'https://registry.npmjs.org'
26+
package-manager-cache: false
2827

2928
- run: npm ci
3029

3130
- run: npm run lint
3231

3332
- run: npm test
3433

35-
- run: npm publish --registry=https://registry.npmjs.org
34+
- run: npm publish

0 commit comments

Comments
 (0)