chore: add linters and workflows (#1) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release-please | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
release-type: 'node' | |
# cspell:ignore noreply | |
publish: | |
runs-on: ubuntu-latest | |
needs: | |
- release-please | |
if: ${{ needs.release-please.outputs.release_created }} | |
steps: | |
# The logic below handles the npm publication: | |
- uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- run: | | |
pnpm i | |
pnpm build | |
- run: pnpm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.PUBLISH_NPM}} |