-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: backend workflow * frontend * remove environment * no need to validate PR refs * test * undo tmp changes * build Co-Authored-By: --global <--global>
- Loading branch information
Showing
4 changed files
with
103 additions
and
103 deletions.
There are no files selected for viewing
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
artifact-name: | ||
description: "The name of the artifact." | ||
type: string | ||
required: false | ||
default: "build" | ||
secrets: | ||
CFL_BOT_GH_TOKEN: | ||
description: "The CFL-bot's GitHub token. Used to release." | ||
required: true | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
# Release if: | ||
# - the repo's owner is Ocado Tech. | ||
# - a change is made to the default branch. | ||
if: | | ||
github.repository_owner_id == 2088731 && | ||
github.ref_name == github.event.repository.default_branch | ||
env: | ||
NODE_VERSION: 22 | ||
steps: | ||
- name: 🛫 Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.CFL_BOT_GH_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: 📥 Download Artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ inputs.artifact-name }} | ||
|
||
- name: 🌐 Set up Node ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: 🛠 Install Dependencies | ||
run: | | ||
npm install --global npm | ||
npm install --global \ | ||
semantic-release@^20.1.1 \ | ||
@semantic-release/git@^10.0.1 \ | ||
@semantic-release/changelog@^6.0.2 | ||
- name: 🚀 Publish Semantic Release | ||
env: | ||
GH_TOKEN: ${{ secrets.CFL_BOT_GH_TOKEN }} | ||
GIT_AUTHOR_NAME: cfl-bot | ||
GIT_AUTHOR_EMAIL: [email protected] | ||
GIT_COMMITTER_NAME: cfl-bot | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
run: npx semantic-release |
This file was deleted.
Oops, something went wrong.