mirror of
https://github.com/versia-pub/api.git
synced 2025-12-07 00:48:19 +01:00
fix(build): 💚 Make CI properly get secrets
This commit is contained in:
parent
736728d829
commit
5b3bea2983
3
.github/workflows/publish.yml
vendored
3
.github/workflows/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
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -19,7 +20,7 @@ jobs:
|
||||||
- uses: oven-sh/setup-bun@v1
|
- uses: oven-sh/setup-bun@v1
|
||||||
|
|
||||||
- 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: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile --production
|
run: bun install --frozen-lockfile --production
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue