Skip to content

Commit

Permalink
skip steps if no version bump in publish workflow (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
goastler authored Dec 21, 2023
1 parent 65f13f4 commit 8c5694e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,26 @@ jobs:
# setup node
- uses: actions/setup-node@v3
if: steps.check_version.outputs.bump == 'true'
with:
node-version-file: '.nvmrc'
- name: Install npm
if: steps.check_version.outputs.bump == 'true'
run: npm i -g npm@$(cat package.json | jq -r .engines.npm)

# get the latest build from the cache produced in the post_pr workflow

- run: mkdir -p protocol/cargo-cache
if: steps.check_version.outputs.bump == 'true'
- run: mkdir -p protocol/target
if: steps.check_version.outputs.bump == 'true'
- run: mkdir -p node_modules
if: steps.check_version.outputs.bump == 'true'
- run: mkdir -p ~/.cache/Cypress
if: steps.check_version.outputs.bump == 'true'

- name: Restore cache
if: steps.check_version.outputs.bump == 'true'
uses: actions/cache/restore@v3
with:
path: |
Expand All @@ -106,9 +113,13 @@ jobs:
project-cache-${{ runner.os }}-${{ runner.arch }}-
- run: ls -la ~/.cache/Cypress || true
if: steps.check_version.outputs.bump == 'true'
- run: ls -la protocol/cargo-cache || true
if: steps.check_version.outputs.bump == 'true'
- run: ls -la protocol/target/ink || true
if: steps.check_version.outputs.bump == 'true'
- run: ls -la node_modules || true
if: steps.check_version.outputs.bump == 'true'

- name: Install
if: steps.check_version.outputs.bump == 'true'
Expand Down

0 comments on commit 8c5694e

Please sign in to comment.