Skip to content

Commit

Permalink
chore: limit npm publish to one runner
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Feb 9, 2024
1 parent 1c1b3c4 commit b6b8462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: deno test -A

- name: Get tag version
if: startsWith(github.ref, 'refs/tags/')
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@v3
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/')
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 b6b8462

Please sign in to comment.