Skip to content

Commit 93a791d

Browse files
fix gh actions npm publish
1 parent 337cd13 commit 93a791d

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.claude/settings.local.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(npx tsc:*)"
5+
]
6+
}
7+
}

.github/workflows/astro.yml renamed to .github/workflows/deploy_docs_to_github_pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ concurrency:
2525
cancel-in-progress: false
2626

2727
env:
28-
BUILD_PATH: "." # default value when not using subfolders
28+
BUILD_PATH: "docs"
2929
# BUILD_PATH: subfolder
3030

3131
jobs:

.github/workflows/publishtoNPM.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
13+
id-token: write
1314
defaults:
1415
run:
1516
working-directory: cli
@@ -20,7 +21,7 @@ jobs:
2021
- name: Setup Node.js
2122
uses: actions/setup-node@v4
2223
with:
23-
node-version: 20
24+
node-version: 22
2425
registry-url: https://registry.npmjs.org
2526

2627
- name: Prepare release metadata
@@ -54,9 +55,9 @@ jobs:
5455

5556
- name: Publish package
5657
if: steps.npm_check.outputs.should_publish == 'true'
57-
run: npm publish --access public
58+
run: npm publish --access public --provenance
5859
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
60+
NODE_AUTH_TOKEN: ""
6061

6162
- name: Create GitHub Release
6263
if: success()

0 commit comments

Comments
 (0)