Skip to content

Commit

Permalink
have secrets instead of vars
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshurajora committed Dec 14, 2023
1 parent 82b3799 commit b8486e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
env:
YOURLS_USERNAME: ${{ vars.YOURLS_USERNAME }}
YOURLS_PASSWORD: ${{vars.YOURLS_PASSWORD}}
YOURLS_SERVER_URL: ${{vars.YOURLS_SERVER_URL}}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: touch .env
- run: echo YOURLS_USERNAME=${{ secrets.YOURLS_USERNAME }} >> .env
- run: echo YOURLS_PASSWORD=${{ secrets.YOURLS_PASSWORD }} >> .env
- run: echo YOURLS_SERVER_URL=${{ secrets.YOURLS_SERVER_URL }} >> .env
- run: npm ci
- run: npm run build --if-present
- run: npm test

0 comments on commit b8486e6

Please sign in to comment.