Skip to content

Commit

Permalink
ci: maybe fix npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Feb 9, 2024
1 parent a99d929 commit 97ea26f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:
uses: denoland/setup-deno@v1

- uses: dprint/[email protected]
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
Expand All @@ -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

0 comments on commit 97ea26f

Please sign in to comment.