fix(build): 💚 Make CI properly get secrets

This commit is contained in:
Jesse Wierzbinski 2024-05-13 21:42:16 -10:00
parent 736728d829
commit 5b3bea2983
No known key found for this signature in database

View file

@ -12,6 +12,7 @@ jobs:
# Build job
build:
runs-on: ubuntu-latest
environment: NPM Deploy
steps:
- name: Checkout
uses: actions/checkout@v4
@ -19,7 +20,7 @@ jobs:
- uses: oven-sh/setup-bun@v1
- 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
run: bun install --frozen-lockfile --production