Skip to content

Commit

Permalink
ci: switch to releasing to npm with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed May 2, 2024
1 parent 3d9c8e5 commit 7781ab0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release latest version on npm
on:
release:
types: [released]

jobs:
release_to_npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Release to npm
run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"commitMessage": "chore: release v${version}"
},
"npm": {
"publish": true
"publish": false
},
"github": {
"release": true,
Expand Down

0 comments on commit 7781ab0

Please sign in to comment.