Skip to content

Commit 98605e3

Browse files
committed
WIP
1 parent 66d6ecb commit 98605e3

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/canary-release.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
if: ${{ !contains(github.event.head_commit.message, '[skip release]') }}
1111
permissions:
12-
id-token: write
12+
id-token: write # Required for OIDC
1313
contents: read
1414
steps:
1515
- name: Checkout code
@@ -40,6 +40,11 @@ jobs:
4040
- name: Build project
4141
run: bun run build
4242

43+
- name: Debug OIDC
44+
run: |
45+
echo "ACTIONS_ID_TOKEN_REQUEST_URL: $ACTIONS_ID_TOKEN_REQUEST_URL"
46+
echo "ACTIONS_ID_TOKEN_REQUEST_TOKEN: ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:0:10}..."
47+
4348
- name: Generate canary version
4449
id: version
4550
run: |
@@ -56,14 +61,8 @@ jobs:
5661
pkg.version = '${{ steps.version.outputs.canary_version }}';
5762
require('fs').writeFileSync('package.json', JSON.stringify(pkg, null, 2));
5863
"
59-
cat package.json
60-
61-
- name: Check npm authentication
62-
run: npm whoami
63-
env:
64-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6564
66-
- name: Publish canary release with OIDC
67-
run: npm publish --provenance --tag canary --access public
65+
- name: Publish canary release with Trusted Publishing
66+
run: npm publish --provenance --access public --tag canary
6867
env:
69-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
68+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)