mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-15 22:34:15 +08:00
fix: wire npm auth into release publish
This commit is contained in:
parent
34380326c8
commit
b5c4d2beb9
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -68,6 +68,8 @@ jobs:
|
||||
|
||||
- name: Publish npm package
|
||||
if: steps.npm_publish_state.outputs.already_published != 'true'
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: npm publish --access public --provenance
|
||||
|
||||
- name: Generate release highlights
|
||||
|
||||
5
.github/workflows/reusable-release.yml
vendored
5
.github/workflows/reusable-release.yml
vendored
@ -12,6 +12,9 @@ on:
|
||||
required: false
|
||||
type: boolean
|
||||
default: true
|
||||
secrets:
|
||||
NPM_TOKEN:
|
||||
required: false
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@ -77,6 +80,8 @@ jobs:
|
||||
|
||||
- name: Publish npm package
|
||||
if: steps.npm_publish_state.outputs.already_published != 'true'
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: npm publish --access public --provenance
|
||||
|
||||
- name: Generate release highlights
|
||||
|
||||
@ -48,6 +48,7 @@ for (const workflow of [
|
||||
|
||||
test(`${workflow} publishes new tag versions to npm`, () => {
|
||||
assert.match(content, /npm publish --access public --provenance/);
|
||||
assert.match(content, /NODE_AUTH_TOKEN:\s*\$\{\{\s*secrets\.NPM_TOKEN\s*\}\}/);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user