side drawer action button (#106) #58
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 using release-please | |
on: | |
push: | |
branches: | |
- deploy | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
release-type: node | |
# The logic below handles the npm publication: | |
- uses: actions/checkout@v4 | |
# these if statements ensure that a publication only occurs when | |
# a new release is created: | |
if: ${{ steps.release.outputs.release_created }} | |
- uses: actions/setup-node@v3 | |
if: ${{ steps.release.outputs.release_created }} | |
with: | |
node-version: 16.17.1 | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install pnpm | |
if: ${{ steps.release.outputs.release_created }} | |
working-directory: . | |
# run: npm i [email protected] [email protected] -g | |
run: npm i [email protected] -g | |
- name: Install dependencies | |
if: ${{ steps.release.outputs.release_created }} | |
working-directory: . | |
run: pnpm i --frozen-lockfile | |
- name: Setup email & Update versions | |
if: ${{ steps.release.outputs.release_created }} | |
working-directory: . | |
run: | | |
git config user.name github-actions && git config user.email [email protected] | |
lerna version ${{ steps.release.outputs.tag_name }} --yes | |
# run: lerna version --yes | |
- name: Publish all packages | |
if: ${{ steps.release.outputs.release_created }} | |
working-directory: . | |
run: pnpm publish -r --publish-branch=deploy | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |