Skip to content

Commit

Permalink
consolidate publish into overall workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
g0t4 committed Dec 11, 2024
1 parent 859e1a1 commit 00cc9f1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/tests.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,20 @@ jobs:

- name: Run tests
run: npm test

publish:
needs: test
runs-on: ubuntu-latest

if: startsWith(github.ref, 'refs/tags/') # only if it's a tag

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
23 changes: 0 additions & 23 deletions .github/workflows/npm-publish.yml

This file was deleted.

0 comments on commit 00cc9f1

Please sign in to comment.