chore: Add issue templates and workflows

This commit is contained in:
Luan
2024-10-24 09:02:21 -03:00
parent 3f0ddc0555
commit 5cec3e9b5f
7 changed files with 197 additions and 0 deletions

34
.github/workflows/release-please.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: release-please
on:
push:
branches:
- main
jobs:
release-please:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: jintr
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}
- name: Publish to NPM
run: |
npm ci
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}