Skip to content

Commit

Permalink
Merge pull request #1044 from quirrel-dev/add-release-please
Browse files Browse the repository at this point in the history
chore: setup release-please
  • Loading branch information
Skn0tt committed Oct 18, 2022
2 parents 5379240 + e9dbddd commit eb01640
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release-please
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_GH_PAT }}
release-type: node
package-name: 'quirrel'
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: '*'
cache: 'npm'
check-latest: true
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit eb01640

Please sign in to comment.