mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 16:38:20 +01:00
fix(build): 💚 Add npm token to env in ci
This commit is contained in:
parent
8ce0e58c03
commit
3427c60ac1
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
|
|
@ -32,6 +32,8 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: NPM Deploy
|
environment: NPM Deploy
|
||||||
|
env:
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -45,6 +47,9 @@ jobs:
|
||||||
- name: Create bunfig.toml with NPM token (GitHub Secrets)
|
- name: Create bunfig.toml with NPM token (GitHub Secrets)
|
||||||
run: echo -e "[install]\nregistry = { url = \"https://registry.npmjs.org/\", token = \"${{ secrets.NPM_TOKEN }}\" }" > bunfig.toml
|
run: echo -e "[install]\nregistry = { url = \"https://registry.npmjs.org/\", token = \"${{ secrets.NPM_TOKEN }}\" }" > bunfig.toml
|
||||||
|
|
||||||
|
- name: Create .npmrc
|
||||||
|
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue