Merge pull request #105 from emmanuelgautier/renovate/all-minor-patch #82
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: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: GoogleCloudPlatform/release-please-action@v3 | |
id: release | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-type: node | |
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]' | |
- name: Checkout π | |
if: ${{ steps.release.outputs.release_created }} | |
uses: actions/checkout@v3 | |
- name: Setup node env π | |
if: ${{ steps.release.outputs.release_created }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install dependencies π¨π»βπ» | |
if: ${{ steps.release.outputs.release_created }} | |
run: yarn install --frozen-lockfile --silent | |
- name: Publish package π¦ | |
if: ${{ steps.release.outputs.release_created }} | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Setup node env for Github π | |
if: ${{ steps.release.outputs.release_created }} | |
uses: actions/setup-node@v3 | |
with: | |
registry-url: 'https://npm.pkg.github.com' | |
- name: Publish package π¦ | |
if: ${{ steps.release.outputs.release_created }} | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |