chore(deps): update dependency lint-staged to v15.2.10 #43
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-please | |
on: | |
push: | |
branches: | |
- dev | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
with: | |
release-type: node | |
build-dist: | |
runs-on: ubuntu-latest | |
needs: [release-please] | |
if: ${{ needs.release-please.outputs.pr }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ fromJson(needs.release-please.outputs.pr).headBranchName }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run build | |
- name: Push artifact | |
run: | | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
git add -f dist | |
git commit -m "build: build dist" | |
git push origin ${{ fromJson(needs.release-please.outputs.pr).headBranchName }} | |
create-tags: | |
runs-on: ubuntu-latest | |
needs: [release-please] | |
if: ${{ needs.release-please.outputs.release_created }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: tag major and minor versions | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
git tag -d v${{ needs.release-please.outputs.major }} || true | |
git tag -d v${{ needs.release-please.outputs.major }}.${{ needs.release-please.outputs.minor }} || true | |
git push origin :v${{ needs.release-please.outputs.major }} || true | |
git push origin :v${{ needs.release-please.outputs.major }}.${{ needs.release-please.outputs.minor }} || true | |
git tag -a v${{ needs.release-please.outputs.major }} -m "Release v${{ needs.release-please.outputs.major }}" | |
git tag -a v${{ needs.release-please.outputs.major }}.${{ needs.release-please.outputs.minor }} -m "Release v${{ needs.release-please.outputs.major }}.${{ needs.release-please.outputs.minor }}" | |
git push origin v${{ needs.release-please.outputs.major }} | |
git push origin v${{ needs.release-please.outputs.major }}.${{ needs.release-please.outputs.minor }} |