fix: add id-token permission to publish workflow

This commit is contained in:
Vitaly Gashkov
2026-02-08 14:08:12 +05:00
parent b42a8d29dc
commit d8f8586045
2 changed files with 24 additions and 23 deletions
+6 -5
View File
@@ -6,12 +6,16 @@ on:
tags: tags:
- "v*" - "v*"
permissions:
id-token: write
contents: write
jobs: jobs:
publish: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- uses: actions/setup-node@v4 - uses: actions/setup-node@v6
with: with:
node-version: 22 node-version: 22
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
@@ -45,6 +49,3 @@ jobs:
generate_release_notes: true generate_release_notes: true
prerelease: ${{ steps.version.outputs.PRERELEASE == 'true' }} prerelease: ${{ steps.version.outputs.PRERELEASE == 'true' }}
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
+18 -18
View File
@@ -2,7 +2,17 @@
"name": "crextractor", "name": "crextractor",
"version": "1.3.5", "version": "1.3.5",
"description": "Utility for extracting credentials from the Crunchyroll Android app", "description": "Utility for extracting credentials from the Crunchyroll Android app",
"main": "crextractor.js", "keywords": [
"crunchyroll"
],
"license": "MIT",
"author": "Vitaly Gashkov <vitalygashkov@vk.com>",
"funding": [
{
"type": "individual",
"url": "https://t.me/tribute/app?startapp=dqW2"
}
],
"bin": { "bin": {
"crextractor": "bin/cli.js" "crextractor": "bin/cli.js"
}, },
@@ -11,34 +21,24 @@
"crextractor.d.ts", "crextractor.d.ts",
"crextractor.js" "crextractor.js"
], ],
"types": "crextractor.d.ts",
"type": "commonjs", "type": "commonjs",
"main": "crextractor.js",
"types": "crextractor.d.ts",
"scripts": { "scripts": {
"start": "node bin/cli.js", "start": "node bin/cli.js",
"extract:mobile": "node bin/cli.js --target mobile --output ./credentials.mobile.json", "extract:mobile": "node bin/cli.js --target mobile --output ./credentials.mobile.json",
"extract:tv": "node bin/cli.js --target tv --output ./credentials.tv.json", "extract:tv": "node bin/cli.js --target tv --output ./credentials.tv.json",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"keywords": [
"crunchyroll"
],
"author": "Vitaly Gashkov <vitalygashkov@vk.com>",
"license": "MIT",
"readmeFilename": "README.md",
"funding": [
{
"type": "individual",
"url": "https://t.me/tribute/app?startapp=dqW2"
}
],
"engines": {
"node": ">=22"
},
"dependencies": { "dependencies": {
"molnia": "^0.1.7" "molnia": "^0.1.7"
}, },
"devDependencies": { "devDependencies": {
"oxfmt": "^0.28.0", "oxfmt": "^0.28.0",
"typescript": "^5.9.3" "typescript": "^5.9.3"
} },
"engines": {
"node": ">=22"
},
"readmeFilename": "README.md"
} }