Skip to content

Commit

Permalink
Use release-it (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobMiksch authored May 20, 2024
1 parent f5e6934 commit d852d99
Show file tree
Hide file tree
Showing 4 changed files with 5,391 additions and 928 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ on:
release:
types: [published]
jobs:
build:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v2
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --access public
fetch-depth: 0
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm install
- run: npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"github": {
"release": true
}
}
Loading

0 comments on commit d852d99

Please sign in to comment.