chore(deps): bump google-github-actions/release-please-action from 3 … #106
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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
name: ' 🚀 Release Please' | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
release-type: node | |
package-name: cspell-action | |
changelog-types: | | |
[ | |
{ "type": "chore", "section": "Miscellaneous", "hidden": true }, | |
{ "type": "ci", "section": "Continuous Integration", "hidden": true }, | |
{ "type": "dev", "section": "Ongoing Development", "hidden": true }, | |
{ "type": "docs", "section": "Documentation" }, | |
{ "type": "feat", "section": "Features", "hidden": false }, | |
{ "type": "feature", "section": "Features" }, | |
{ "type": "fix", "section": "Updates and Bug Fixes", "hidden": false }, | |
{ "type": "perf", "section": "Performance Improvements" }, | |
{ "type": "refactor", "section": "Code Refactoring", "hidden": false }, | |
{ "type": "revert", "section": "Reverts" }, | |
{ "type": "style", "section": "Styles", "hidden": false }, | |
{ "type": "test", "section": "Tests", "hidden": true }, | |
{ "type": "build", "section": "Build System", "hidden": true }, | |
{ "type": "", "section": "Unknown", "hidden": true } | |
] | |
- name: release please output | |
env: | |
OUTPUTS: ${{ toJSON(steps.release.outputs) }} | |
run: echo "$OUTPUTS" | |
publish: | |
if: ${{ needs.release-please.outputs.release_created }} | |
runs-on: ubuntu-latest | |
needs: | |
- release-please | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'pnpm' | |
- name: Install / Build | |
run: | | |
pnpm install | |
- name: Publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.PUBLISH_NPM}} | |
run: | | |
pnpm publish | |
# cspell:ignore noreply |