Skip to content

Topic/10 create the artifactory when the release branch is detached #19

Topic/10 create the artifactory when the release branch is detached

Topic/10 create the artifactory when the release branch is detached #19

Workflow file for this run

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
id: build-artifact
uses: ./.github/actions/build-artifact-upload
publish:
name: 'Publish'
needs: [create_artifact]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
sparse-checkout: |
.github
package.json
yarn.lock
- 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/build-artifact-download
with:
artifact-name: ${{ job.create_artifact.steps.build-artifact.outputs.artifact-name }}
- name: Move into the artifact folder
shell: bash
run: cd ./${{ job.create_artifact.steps.build-artifact.outputs.artifact-name }}
- name: Publish step
shell: bash
run: ls -latr && echo "Publish artifact"