Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoferrolho committed May 29, 2024
1 parent 784603e commit 66db3ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 38 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/publish.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ on:
jobs:
build:
runs-on: ubuntu-22.04
if: ${{ github.actor != 'dependabot[bot]' }}

timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -33,6 +36,6 @@ jobs:
run: npm rebuild && npm run prepare --if-present
- name: Test
run: npm test
- name: Tag
- name: Release
if: ${{ github.ref == 'refs/heads/main' }}
run: ./scripts/tag.sh
run: ./scripts/release.sh
2 changes: 2 additions & 0 deletions scripts/tag.sh → scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ git add --all lib/
git commit --message "Release version $VERSION"
git tag $VERSION
git push origin refs/tags/$VERSION

npm publish

0 comments on commit 66db3ca

Please sign in to comment.