Enable trusted npm publish for server
This commit is contained in:
5
.github/workflows/dev-release.yml
vendored
5
.github/workflows/dev-release.yml
vendored
@@ -73,6 +73,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
cache: npm
|
cache: npm
|
||||||
|
registry-url: https://registry.npmjs.org
|
||||||
|
|
||||||
- name: Set workspace versions
|
- name: Set workspace versions
|
||||||
run: npm version ${VERSION} --workspaces --include-workspace-root --no-git-tag-version --allow-same-version
|
run: npm version ${VERSION} --workspaces --include-workspace-root --no-git-tag-version --allow-same-version
|
||||||
@@ -87,4 +88,8 @@ jobs:
|
|||||||
run: npm run build --workspace @neuralnomads/codenomad
|
run: npm run build --workspace @neuralnomads/codenomad
|
||||||
|
|
||||||
- name: Publish server package to dev tag
|
- name: Publish server package to dev tag
|
||||||
|
env:
|
||||||
|
NPM_CONFIG_PROVENANCE: true
|
||||||
|
NPM_CONFIG_REGISTRY: https://registry.npmjs.org
|
||||||
|
NPM_CONFIG_ALWAYS_AUTH: true
|
||||||
run: npm publish --workspace @neuralnomads/codenomad --access public --tag dev --provenance
|
run: npm publish --workspace @neuralnomads/codenomad --access public --tag dev --provenance
|
||||||
|
|||||||
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -89,6 +89,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
cache: npm
|
cache: npm
|
||||||
|
registry-url: https://registry.npmjs.org
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci --workspaces
|
run: npm ci --workspaces
|
||||||
@@ -100,4 +101,8 @@ jobs:
|
|||||||
run: npm run build --workspace @neuralnomads/codenomad
|
run: npm run build --workspace @neuralnomads/codenomad
|
||||||
|
|
||||||
- name: Publish server package
|
- name: Publish server package
|
||||||
|
env:
|
||||||
|
NPM_CONFIG_PROVENANCE: true
|
||||||
|
NPM_CONFIG_REGISTRY: https://registry.npmjs.org
|
||||||
|
NPM_CONFIG_ALWAYS_AUTH: true
|
||||||
run: npm publish --workspace @neuralnomads/codenomad --access public --tag latest --provenance
|
run: npm publish --workspace @neuralnomads/codenomad --access public --tag latest --provenance
|
||||||
|
|||||||
Reference in New Issue
Block a user