# 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: 📦 v6 Unstable Release 'on': workflow_dispatch: inputs: branch: description: Branch to release from required: true default: next type: string jobs: constants: name: Create constants outputs: global-cache-key: ${{ steps.global-cache-key.outputs.global-cache-key }} run-cache-key: ${{ steps.run-cache-key.outputs.run-cache-key }} steps: - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 with: node-version: 24 - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 - name: Create global cache key id: global-cache-key run: >- echo "global-cache-key=${{ github.event.inputs.branch }}-${{ runner.os }}-$(/bin/date -u "+%m%d")-${{ vars.RANDOM_CACHE_KEY_SUFFIX }}" >> $GITHUB_OUTPUT - 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 permissions: contents: read actions: write build: name: Build needs: constants runs-on: ubuntu-latest steps: - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 with: node-version: 24 - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 with: path: ${{ github.event.inputs.branch }} ref: ${{ github.event.inputs.branch }} - name: Resolve Yarn cache folder id: yarn-cache-folder working-directory: ${{ github.event.inputs.branch }} run: echo "path=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 with: path: ${{ steps.yarn-cache-folder.outputs.path }} key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} restore-keys: yarn-${{ runner.os }}- - uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 with: path: ${{ github.event.inputs.branch }}/.webiny/cached-packages key: ${{ needs.constants.outputs.global-cache-key }} - name: Install dependencies run: yarn --immutable working-directory: ${{ github.event.inputs.branch }} - name: Build packages run: yarn build working-directory: ${{ github.event.inputs.branch }} - uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 with: path: ${{ github.event.inputs.branch }}/.webiny/cached-packages key: ${{ needs.constants.outputs.run-cache-key }} env: NODE_OPTIONS: '--max_old_space_size=4096' YARN_ENABLE_IMMUTABLE_INSTALLS: false permissions: contents: read actions: write npmReleaseUnstable: needs: - constants - build name: NPM release ("unstable" tag) env: NODE_OPTIONS: '--max_old_space_size=4096' YARN_ENABLE_IMMUTABLE_INSTALLS: false NPM_TOKEN: ${{ secrets.NPM_TOKEN }} UNSTABLE_VERSION: ${{ vars.UNSTABLE_VERSION }} steps: - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 with: node-version: 24 - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 with: path: ${{ github.event.inputs.branch }} ref: ${{ github.event.inputs.branch }} fetch-depth: 0 - name: Resolve Yarn cache folder id: yarn-cache-folder working-directory: ${{ github.event.inputs.branch }} run: echo "path=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 with: path: ${{ steps.yarn-cache-folder.outputs.path }} key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} restore-keys: yarn-${{ runner.os }}- - uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 with: path: ${{ github.event.inputs.branch }}/.webiny/cached-packages key: ${{ needs.constants.outputs.run-cache-key }} - name: Install dependencies run: yarn --immutable working-directory: ${{ github.event.inputs.branch }} - name: Build packages run: yarn build working-directory: ${{ github.event.inputs.branch }} - name: Create ".npmrc" file in the project root run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc working-directory: ${{ github.event.inputs.branch }} - name: Set git email run: git config --global user.email "webiny-bot@webiny.com" working-directory: ${{ github.event.inputs.branch }} - name: Set git username run: git config --global user.name "webiny-bot" working-directory: ${{ github.event.inputs.branch }} - name: Version and publish "unstable" tag to NPM working-directory: ${{ github.event.inputs.branch }} run: yarn release --type=unstable runs-on: ubuntu-latest permissions: contents: read actions: write