💥 (breaking) node 20, esm, semantic-release@23 [b] (#1144) #1387
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: ' 🔀️ Push' | |
on: | |
push: | |
branches: | |
- main | |
- canary | |
- develop | |
- ci/** | |
- feat/** | |
- feature/** | |
- fix/** | |
- refactor/** | |
- release/** | |
concurrency: | |
group: push-${{ github.ref }}-1 | |
cancel-in-progress: true | |
env: | |
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
GH_DEPLOY_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
jobs: | |
pull: | |
name: '👷️ CI' | |
if: (contains(github.event.head_commit.message, '[b]') || github.ref == 'refs/heads/main') && !contains(github.event.head_commit.message, '[skip ci]') | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
env: | |
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
steps: | |
- name: '🐙️ Checkout' | |
id: pull-checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 10 | |
- name: '💽️ Init' | |
id: push-init | |
uses: JeromeFitz/packages/.github/actions/init@refactor/canary | |
- name: '📦 Install' | |
id: push-install | |
uses: JeromeFitz/packages/.github/actions/install@refactor/canary | |
- name: '🔺️ Cache (turbo)' | |
id: push-cache-turbo | |
uses: JeromeFitz/packages/.github/actions/cache-turbo@refactor/canary | |
with: | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
- name: '🚨️ Lint' | |
id: push-lint | |
uses: JeromeFitz/packages/.github/actions/lint@refactor/canary | |
with: | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
# https://docs.github.com/en/actions/learn-github-actions/expressions | |
- name: '📛 Commit Message' | |
id: push-commit-message | |
run: | | |
echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT | |
- name: '🏗️ Build' | |
id: push-build | |
uses: JeromeFitz/packages/.github/actions/build@refactor/canary | |
with: | |
BUILD_COMMAND: 'build' | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
- name: '🏗️ Build ALL' | |
id: push-build-all | |
if: ${{ contains(steps.push-commit-message.outputs.message, '[b]') }} | |
uses: JeromeFitz/packages/.github/actions/build@refactor/canary | |
with: | |
BUILD_COMMAND: 'build:all' | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
- name: '🏷️ Release' | |
id: push-release | |
if: ${{ contains(steps.push-commit-message.outputs.message, '[b]') }} | |
uses: JeromeFitz/packages/.github/actions/release@refactor/canary | |
with: | |
GH_TOKEN: ${{ env.GH_BOT_TOKEN }} | |
NPM_TOKEN: ${{ env.NPM_TOKEN }} |