Skip to content

Commit f18d44a

Browse files
authored
Merge pull request #9 from Jabelic-Works/codex/fix-oidc-staged-publish
Use OIDC for staged publishing
2 parents 8ab0f88 + 6f92955 commit f18d44a

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
uses: actions/setup-node@v6
3030
with:
3131
node-version: 24
32-
registry-url: https://registry.npmjs.org
3332
package-manager-cache: false
3433

3534
- name: Update npm CLI
@@ -38,6 +37,11 @@ jobs:
3837
- name: Show npm version
3938
run: npm --version
4039

40+
- name: Verify OIDC environment
41+
run: |
42+
test -n "${ACTIONS_ID_TOKEN_REQUEST_URL:-}"
43+
test -n "${ACTIONS_ID_TOKEN_REQUEST_TOKEN:-}"
44+
4145
- name: Install dependencies
4246
run: pnpm install --frozen-lockfile
4347

@@ -69,4 +73,7 @@ jobs:
6973
run: npm pack --dry-run
7074

7175
- name: Stage package
76+
env:
77+
NODE_AUTH_TOKEN: ''
78+
NPM_CONFIG_USERCONFIG: ''
7279
run: npm stage publish

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vitepress-plugin-external-markdown",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Materialize Markdown files outside a VitePress srcDir as generated VitePress pages.",
55
"homepage": "https://github.com/Jabelic-Works/vitepress-plugin-external-markdown#readme",
66
"bugs": {

0 commit comments

Comments
 (0)