Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip steps if no version bump in publish workflow #925

Merged
merged 2 commits into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading