Merge branch 'refs/heads/dev' into stable #55
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 file was automatically generated by github-actions-wac. | |
# DO NOT MODIFY IT BY HAND. Instead, modify the source *.wac.ts file(s) | |
# and run "github-actions-wac build" (or "ghawac build") to regenerate this file. | |
# For more information, run "github-actions-wac --help". | |
name: Stable Branch - Push | |
'on': | |
push: | |
branches: | |
- stable | |
jobs: | |
validateWorkflows: | |
name: Validate workflows | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: yarn --immutable | |
- name: Validate | |
run: npx github-actions-wac validate | |
runs-on: ubuntu-latest | |
env: | |
NODE_OPTIONS: '--max_old_space_size=4096' | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
constants: | |
name: Create constants | |
outputs: | |
run-cache-key: ${{ steps.run-cache-key.outputs.run-cache-key }} | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: actions/checkout@v4 | |
- name: Create workflow run cache key | |
id: run-cache-key | |
run: >- | |
echo "run-cache-key=${{ github.run_id }}-${{ github.run_attempt }}-${{ | |
vars.RANDOM_CACHE_KEY_SUFFIX }}" >> $GITHUB_OUTPUT | |
runs-on: ubuntu-latest | |
env: | |
NODE_OPTIONS: '--max_old_space_size=4096' | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
build: | |
name: Build | |
needs: constants | |
runs-on: webiny-build-packages | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: .yarn/cache | |
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn --immutable | |
working-directory: '' | |
- name: Build packages | |
run: yarn build:quick | |
working-directory: '' | |
- uses: actions/cache@v4 | |
with: | |
path: .webiny/cached-packages | |
key: ${{ needs.constants.outputs.run-cache-key }} | |
env: | |
NODE_OPTIONS: '--max_old_space_size=4096' | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
npmReleaseBeta: | |
needs: | |
- constants | |
- build | |
name: NPM release ("beta" tag) | |
env: | |
NODE_OPTIONS: '--max_old_space_size=4096' | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
BETA_VERSION: ${{ vars.BETA_VERSION }} | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/cache@v4 | |
with: | |
path: .yarn/cache | |
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
- uses: actions/cache@v4 | |
with: | |
path: .webiny/cached-packages | |
key: ${{ needs.constants.outputs.run-cache-key }} | |
- name: Install dependencies | |
run: yarn --immutable | |
working-directory: '' | |
- name: Build packages | |
run: yarn build:quick | |
working-directory: '' | |
- name: Create ".npmrc" file in the project root | |
run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc | |
- name: Set git email | |
run: git config --global user.email "[email protected]" | |
- name: Set git username | |
run: git config --global user.name "webiny-bot" | |
- name: Version and publish "beta" tag to NPM | |
run: yarn release --type=beta | |
runs-on: ubuntu-latest | |
npmReleaseLatest: | |
needs: | |
- constants | |
- npmReleaseBeta | |
name: NPM release ("latest" tag) | |
environment: release | |
env: | |
NODE_OPTIONS: '--max_old_space_size=4096' | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
LATEST_VERSION: ${{ vars.LATEST_VERSION }} | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- uses: actions/cache@v4 | |
with: | |
path: .yarn/cache | |
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
- uses: actions/cache@v4 | |
with: | |
path: .webiny/cached-packages | |
key: ${{ needs.constants.outputs.run-cache-key }} | |
- name: Install dependencies | |
run: yarn --immutable | |
working-directory: '' | |
- name: Build packages | |
run: yarn build:quick | |
working-directory: '' | |
- name: Create ".npmrc" file in the project root | |
run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc | |
- name: Set git email | |
run: git config --global user.email "[email protected]" | |
- name: Set git username | |
run: git config --global user.name "webiny-bot" | |
- name: Version and publish "latest" tag to NPM | |
run: yarn release --type=latest | |
runs-on: ubuntu-latest |