chore: bootstrap releases for path: . (#23) #37
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: | |
push: | |
branches: | |
- 'main' | |
permissions: | |
# Needed by googleapis/release-please-action@v4 | |
contents: write | |
pull-requests: write | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🍄 Bump package version, create GitHub release and changelog | |
uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
release-type: node | |
- uses: actions/checkout@v4 | |
if: ${{ steps.release.outputs.release_created }} | |
- uses: actions/setup-node@v4 | |
if: ${{ steps.release.outputs.release_created }} | |
with: | |
node-version: lts/* | |
registry-url: https://registry.npmjs.org | |
- name: 🚀 Publish to npm | |
if: ${{ steps.release.outputs.release_created }} | |
run: | | |
npm install | |
npm run build --if-present | |
npm publish --provenance | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |