chore: release 0.3.1 #33
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
# This workflow is for the release please action. It automates releases when using conventional commit messages | |
# It also auto publishes releases to npm under the @latest tag on merge | |
# For more information see: https://github.com/google-github-actions/release-please-action | |
name: release-main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release-please: | |
permissions: | |
contents: write | |
pull-requests: write | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use Release Please | |
uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
command: manifest | |
monorepo-tags: true | |
# The logic below handles the npm publication: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
if: ${{ steps.release.outputs.releases_created }} | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x.x | |
registry-url: 'https://registry.npmjs.org' | |
if: ${{ steps.release.outputs.releases_created }} | |
- name: Install PNPM | |
uses: pnpm/action-setup@v2 | |
id: pnpm-install | |
if: ${{ steps.release.outputs.releases_created }} | |
- name: Get PNPM Store Directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
if: ${{ steps.release.outputs.releases_created }} | |
- name: Setup PNPM Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
if: ${{ steps.release.outputs.releases_created }} | |
- name: Install Dependencies | |
run: pnpm install --ignore-scripts --frozen-lockfile | |
if: ${{ steps.release.outputs.releases_created }} | |
- name: Build Library | |
run: pnpm run build --filter "@boindil/bootstrap-vue-next-icons" | |
if: ${{ steps.release.outputs.releases_created }} | |
- name: Publish Main | |
run: pnpm publish --tag latest --filter "@boindil/bootstrap-vue-next-icons" --access=public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
NPM_CONFIG_PROVENANCE: true | |
if: ${{ steps.release.outputs.releases_created && steps.release.outputs['packages/bootstrap-vue-next-icons--release_created'] }} |