Skip to content

Commit

Permalink
added envs to workflows file
Browse files Browse the repository at this point in the history
  • Loading branch information
KnockOutEZ committed Mar 1, 2024
1 parent f771347 commit 8410c60
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
name: 'Setup'
description: "Setups Node.js and yarn to run GitHub Actions' jobs."
env:
BASE_URL: ${{ secrets.BASE_URL }}
USER_NAME: ${{ secrets.USER_NAME }}
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}
DATABASE_NAME: ${{ secrets.DATABASE_NAME }}
runs:
using: 'composite'
steps:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/continuous-integrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,10 @@ jobs:
uses: './.github/actions/setup'

- name: 'Execute the build script'
run: 'yarn run build'
run: 'yarn run build'

env:
BASE_URL: ${{ secrets.BASE_URL }}
USER_NAME: ${{ secrets.USER_NAME }}
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}
DATABASE_NAME: ${{ secrets.DATABASE_NAME }}
4 changes: 4 additions & 0 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ jobs:
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
BASE_URL: ${{ secrets.BASE_URL }}
USER_NAME: ${{ secrets.USER_NAME }}
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}
DATABASE_NAME: ${{ secrets.DATABASE_NAME }}
if: ${{ steps.release.outputs.released == 'true' }}

0 comments on commit 8410c60

Please sign in to comment.