Topic/10 create the artifactory when the release branch is detached #11
Workflow file for this run
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: Release | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
create_artifact: | |
name: 'Create build' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Restore cached dev node_modules | |
uses: ./.github/actions/cache-dependencies | |
- name: Build and upload the artifact | |
uses: ./.github/actions/build-artifact | |
with: | |
release-name: test-build | |
prepare_publish: | |
name: 'Prepare publish' | |
needs: [create_artifact] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Restore cached production node_modules | |
uses: ./.github/actions/cache-prod-dependencies | |
- name: Download artifact | |
uses: ./.github/actions/restore-build-artifact | |
with: | |
artifact-name: ${{ steps.build-artifact.outputs.artifact-name }} | |
- name: Publish step | |
shell: bash | |
run: echo "Publish artifact" |