Skip to content

Commit

Permalink
fix: only publish to npm if no dev release
Browse files Browse the repository at this point in the history
Signed-off-by: Henrik Gerdes <hegerdes@outlook.de>
  • Loading branch information
hegerdes committed Apr 13, 2024
1 parent 4efc2c2 commit 4032f91
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,7 @@ jobs:
run: npm run lint

- name: Build app
run: |
# Running test
if [[ "$(node --version)" == "v18"* || "$(node --version)" == "v20"* ]]; then
export NODE_OPTIONS=--openssl-legacy-provider
echo HI
fi
npm run dist
run: npm run dist

- name: Upload artifacts
uses: actions/upload-artifact@v2
Expand All @@ -66,6 +60,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Push npm package
if: ${{ !contains( github.ref_name, 'dev' )}}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4032f91

Please sign in to comment.