Skip to content

Commit

Permalink
narrow env usage
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Nov 24, 2023
1 parent 3930e8c commit d8356cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
pull_request:
branches: [master]

env:
FILEBASE_TOKEN: ${{ secrets.FILEBASE_TOKEN }}

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -21,6 +18,8 @@ jobs:
deno-version: v1.x
- name: Run tests
run: deno test --coverage=coverage --allow-net --allow-env
env:
FILEBASE_TOKEN: ${{ secrets.FILEBASE_TOKEN }}
- name: Create coverage report
run: deno coverage ./coverage --lcov > coverage.lcov
- name: Coveralls
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
tags:
- '*'

env:
FILEBASE_TOKEN: ${{ secrets.FILEBASE_TOKEN }}


jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -31,6 +27,8 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: npm build
run: deno run -A ./scripts/npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}}
env:
FILEBASE_TOKEN: ${{ secrets.FILEBASE_TOKEN }}
- name: npm publish
if: startsWith(github.ref, 'refs/tags/')
env:
Expand Down

0 comments on commit d8356cb

Please sign in to comment.