Auto-Tag Prerelease (v5.4) #81
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
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". | |
name: auto-tag-dev-v5.4 | |
run-name: Auto-Tag Prerelease (v5.4) | |
on: | |
schedule: | |
- cron: 0 5 * * 0,2-6 | |
workflow_dispatch: {} | |
jobs: | |
pre-flight: | |
name: Pre-Flight Checks | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
outputs: | |
sha: ${{ steps.git.outputs.sha }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: maintenance/v5.4 | |
repository: ${{ github.repository }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: "18" | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build | |
run: yarn build | |
- name: Identify git SHA | |
id: git | |
run: echo sha=$(git rev-parse HEAD) >> $GITHUB_OUTPUT | |
auto-tag: | |
name: Auto-Tag Release | |
needs: pre-flight | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ needs.pre-flight.outputs.sha }} | |
repository: ${{ github.repository }} | |
token: ${{ secrets.PROJEN_GITHUB_TOKEN }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: "18" | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Set git identity | |
run: |- | |
git config user.name "github-actions" | |
git config user.email "[email protected]" | |
- name: Tag PreRelease | |
run: yarn tag-release --idempotent --no-sign --push --prerelease=dev --release-line=5.4 |