Merge pull request #6 from jessestricker/dependabot/github_actions/ac… #26
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 | |
on: | |
push: | |
branches: [main] | |
jobs: | |
run-checks: | |
name: Run checks | |
uses: ./.github/workflows/checks.yml | |
release: | |
name: Release | |
needs: [run-checks] | |
permissions: | |
contents: write # to create a GitHub release | |
packages: write # to publish to the GitHub Package Registry | |
issues: write # to comment on released issues | |
pull-requests: write # to comment on released pull requests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 9 | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: package.json | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Release | |
run: pnpm exec semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} |