From 97ea26f6e24ad495072bc644416f96cbd4203732 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 9 Feb 2024 15:34:26 -0500 Subject: [PATCH] ci: maybe fix npm publish --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b72206..ac72cbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,17 +25,17 @@ jobs: uses: denoland/setup-deno@v1 - uses: dprint/check@v2.1 - if: runner.os == 'ubuntu-latest' + if: runner.os == 'Linux' - name: lint - if: runner.os == 'ubuntu-latest' + if: runner.os == 'Linux' run: deno lint - name: test run: deno test -A - name: Get tag version - if: startsWith(github.ref, 'refs/tags/') && runner.os == 'ubuntu-latest' + if: startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux' id: get_tag_version run: echo TAG_VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT - uses: actions/setup-node@v4 @@ -45,7 +45,7 @@ jobs: - name: npm build run: deno run -A ./scripts/build_npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}} - name: npm publish - if: startsWith(github.ref, 'refs/tags/') && runner.os == 'ubuntu-latest' + if: startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux' env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: cd npm && npm publish