mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
ci: 👷 Correctly populate NPM token
This commit is contained in:
parent
0fc94cab3b
commit
d12bbb2a1b
8
.github/workflows/test-publish.yml
vendored
8
.github/workflows/test-publish.yml
vendored
|
|
@ -12,6 +12,7 @@ jobs:
|
||||||
# Build job
|
# Build job
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: NPM Deploy
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
package: ["sdk", "client"]
|
package: ["sdk", "client"]
|
||||||
|
|
@ -24,11 +25,14 @@ jobs:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: bun install
|
run: bun install
|
||||||
|
|
||||||
|
- name: Configure .npmrc
|
||||||
|
working-directory: packages/${{ matrix.package }}
|
||||||
|
run: |
|
||||||
|
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
|
||||||
|
|
||||||
- name: Publish to NPM
|
- name: Publish to NPM
|
||||||
working-directory: packages/${{ matrix.package }}
|
working-directory: packages/${{ matrix.package }}
|
||||||
run: bun publish --dry-run
|
run: bun publish --dry-run
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
|
||||||
- name: Publish to JSR
|
- name: Publish to JSR
|
||||||
working-directory: packages/${{ matrix.package }}
|
working-directory: packages/${{ matrix.package }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue