Skip to content

Commit fc7936f

Browse files
committed
feat: testing trusted publisher npm
1 parent 660bad6 commit fc7936f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version: 22.12.0
22+
registry-url: https://registry.npmjs.org/
2223
cache: "npm"
2324
cache-dependency-path: package-lock.json
2425

@@ -61,6 +62,13 @@ jobs:
6162
- name: Build package
6263
run: npm run build
6364

65+
- name: Debug OIDC identity
66+
run: |
67+
echo "repo=$GITHUB_REPOSITORY"
68+
echo "ref=$GITHUB_REF"
69+
echo "workflow_ref=$GITHUB_WORKFLOW_REF"
70+
echo "oidc_url_set=${ACTIONS_ID_TOKEN_REQUEST_URL:+yes}"
71+
6472
- name: Publish to npm
6573
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
6674
run: npm publish --access public --provenance

0 commit comments

Comments
 (0)