diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a2ec36..baf9571 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,6 @@ on: pull_request: branches: [master] -env: - FILEBASE_TOKEN: ${{ secrets.FILEBASE_TOKEN }} - jobs: test: runs-on: ubuntu-latest @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6ed6951..ed20cf2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,10 +5,6 @@ on: tags: - '*' -env: - FILEBASE_TOKEN: ${{ secrets.FILEBASE_TOKEN }} - - jobs: test: runs-on: ubuntu-latest @@ -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: