Skip to content

chore(main): release deploygate 1.5.0 (#33) #18

chore(main): release deploygate 1.5.0 (#33)

chore(main): release deploygate 1.5.0 (#33) #18

Workflow file for this run

name: Release
on:
push:
branches: [main]
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/create-github-app-token@v3
id: app-token
with:
app-id: ${{ secrets.RELEASE_PLEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_PLEASE_PRIVATE_KEY }}
- uses: googleapis/release-please-action@v5
id: release
with:
token: ${{ steps.app-token.outputs.token }}
config-file: .release-please-config.json
manifest-file: .release-please-manifest.json
- if: ${{ steps.release.outputs.prs_created == 'true' }}
uses: actions/checkout@v6
with:
ref: ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
token: ${{ steps.app-token.outputs.token }}
- if: ${{ steps.release.outputs.prs_created == 'true' }}
uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
- if: ${{ steps.release.outputs.prs_created == 'true' }}
run: npm ci
- if: ${{ steps.release.outputs.prs_created == 'true' }}
run: npm run bundle
- if: ${{ steps.release.outputs.prs_created == 'true' }}
env:
PR_OUTPUT: ${{ steps.release.outputs.pr }}
run: |
BRANCH=$(printf '%s' "$PR_OUTPUT" | jq -r .headBranchName)
git config user.name "release-please[bot]"
git config user.email "release-please[bot]@users.noreply.github.com"
git add plugin/scripts/bundle.js
if ! git diff --cached --quiet; then
git commit --no-verify -m "chore: regenerate bundle.js for release"
git push origin "HEAD:${BRANCH}"
fi
- if: ${{ steps.release.outputs.release_created == 'true' }}
uses: actions/checkout@v6
- if: ${{ steps.release.outputs.release_created == 'true' }}
uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
registry-url: 'https://registry.npmjs.org'
- if: ${{ steps.release.outputs.release_created == 'true' }}
run: npm install -g npm@latest
- if: ${{ steps.release.outputs.release_created == 'true' }}
run: npm ci
- if: ${{ steps.release.outputs.release_created == 'true' }}
run: npm run bundle
- if: ${{ steps.release.outputs.release_created == 'true' }}
run: npm publish