From 77c0558b19b50bb9e831a80efe6e658294254f50 Mon Sep 17 00:00:00 2001 From: Mike Eling Date: Mon, 22 Apr 2024 22:49:25 +0200 Subject: [PATCH] :construction_worker: Inject secrets into CI steps --- .github/workflows/release.yml | 17 ++++++++++++++++- .github/workflows/test.yml | 10 +++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c3f058..9709d98 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,15 +16,30 @@ jobs: run: bun install - name: Run tests - run: bun run test + uses: nick-fields/retry@v2 + with: + timeout_minutes: 5 + max_attempts: 3 + command: bun run test + env: + LIBRE_LINK_EMAIL: ${{ secrets.LIBRE_LINK_EMAIL }} + LIBRE_LINK_PASSWORD: ${{ secrets.LIBRE_LINK_PASSWORD }} + LIBRE_LINK_UP_VERSION: ${{ secrets.LIBRE_LINK_UP_VERSION }} - name: Build library run: bun run build + env: + LIBRE_LINK_EMAIL: ${{ secrets.LIBRE_LINK_EMAIL }} + LIBRE_LINK_PASSWORD: ${{ secrets.LIBRE_LINK_PASSWORD }} + LIBRE_LINK_UP_VERSION: ${{ secrets.LIBRE_LINK_UP_VERSION }} - name: Publish run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + LIBRE_LINK_EMAIL: ${{ secrets.LIBRE_LINK_EMAIL }} + LIBRE_LINK_PASSWORD: ${{ secrets.LIBRE_LINK_PASSWORD }} + LIBRE_LINK_UP_VERSION: ${{ secrets.LIBRE_LINK_UP_VERSION }} - name: Create Release id: create_release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0671c45..0c6dd02 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,10 +21,18 @@ jobs: - name: Build library run: bun run build + env: + LIBRE_LINK_EMAIL: ${{ secrets.LIBRE_LINK_EMAIL }} + LIBRE_LINK_PASSWORD: ${{ secrets.LIBRE_LINK_PASSWORD }} + LIBRE_LINK_UP_VERSION: ${{ secrets.LIBRE_LINK_UP_VERSION }} - name: Run tests uses: nick-fields/retry@v2 with: timeout_minutes: 5 max_attempts: 3 - command: bun run test \ No newline at end of file + command: bun run test + env: + LIBRE_LINK_EMAIL: ${{ secrets.LIBRE_LINK_EMAIL }} + LIBRE_LINK_PASSWORD: ${{ secrets.LIBRE_LINK_PASSWORD }} + LIBRE_LINK_UP_VERSION: ${{ secrets.LIBRE_LINK_UP_VERSION }} \ No newline at end of file