Update dependencies and migrate to OIDC publishing

This commit is contained in:
Arthur Fiorette 2025-09-15 12:49:26 -03:00
parent 55da840f7b
commit a9ca72206f
No known key found for this signature in database
GPG Key ID: 79FA8EC214FA0233
5 changed files with 316 additions and 202 deletions

View File

@ -6,12 +6,17 @@ on:
workflow_dispatch:
permissions:
id-token: write
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: NPM Registry
url: https://www.npmjs.com/package/axios-cache-interceptor/v/${{ github.event.release.tag_name }}
steps:
- name: Checkout
uses: actions/checkout@v5
@ -35,7 +40,5 @@ jobs:
- name: Build
run: pnpm run build
- name: Publish to NPM
run: pnpm publish --access public --no-git-checks --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to NPM # OIDC authentication
run: pnpm publish --access public --no-git-checks

2
.nvmrc
View File

@ -1 +1 @@
v20.9.0
v24

View File

@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
"extends": ["@arthurfiorette/biomejs-config"],
"files": {
"includes": [

View File

@ -66,11 +66,11 @@
"@swc-node/register": "1.11.1",
"@swc/helpers": "0.5.17",
"@types/jsdom": "21.1.7",
"@types/node": "24.3.1",
"@types/node": "24.4.0",
"auto-changelog": "2.5.0",
"axios": "1.12.2",
"c8": "10.1.3",
"jsdom": "26.1.0",
"jsdom": "27.0.0",
"microbundle": "0.15.1",
"tslib": "2.8.1",
"typescript": "5.9.2",
@ -80,7 +80,7 @@
"peerDependencies": {
"axios": "^1"
},
"packageManager": "pnpm@9.1.1",
"packageManager": "pnpm@10.15.0",
"engines": {
"node": ">=12"
},

495
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff