Skip to content

Commit

Permalink
👷 Adjus test and publish workflows
Browse files Browse the repository at this point in the history
Test were missing the actual test run and publish would now dry run by
default.
  • Loading branch information
AndreMiras committed Dec 4, 2024
1 parent 1a71b9f commit c956044
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Publish

on:
push:
tags:
- "*"
pull_request:

jobs:
build:
Expand All @@ -17,6 +16,8 @@ jobs:
registry-url: "https://registry.npmjs.org"
- run: yarn install
- run: yarn build
- run: npm publish --dry-run
- run: npm publish
if: startsWith(github.ref, 'refs/tags/')
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- run: yarn install
- run: yarn lint
- run: yarn build
- run: npm publish --dry-run
- run: yarn test

0 comments on commit c956044

Please sign in to comment.