Skip to content

Commit

Permalink
Update main
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmadlou committed Sep 2, 2024
1 parent 3788de3 commit 1cbbe88
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
run: npm run test
env:
CI: true

publish:
needs: test
runs-on: ubuntu-latest
Expand All @@ -45,15 +46,11 @@ jobs:
npm version minor --allow-same-version
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git add package.json package-lock.json
git commit -m "Update package version"
git push origin main
git push origin main --tags
- name: Publish to npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
run: |
npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm publish
git push origin --tags
git push origin main

0 comments on commit 1cbbe88

Please sign in to comment.