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