Skip to content

Added continue on error so all the node version will be tried #10

Added continue on error so all the node version will be tried

Added continue on error so all the node version will be tried #10

Workflow file for this run

name: Periodic build
on:
schedule:
- cron: 0 0 * * *
push:
branches:
- 'feature/periodic-release'
concurrency:
group: release-main
jobs:
notify-start:
name: Notify release start
uses: ho-nl/release-slack-action/.github/workflows/notify-slack-start.yml@main
secrets:
slackToken: ${{ secrets.SLACK_BOT_RELEASE_TOKEN}}
with:
channel: slack-test-messages
message: Graphcommerce start building
notifyOnlyOnFailure: true
publish:
continue-on-error: true
strategy:
matrix:
version: [18, 20, 22]
runs-on: ubuntu-latest
outputs:
published: ${{ steps.changesets.outputs.published }}
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: ${{ matrix.version }}
registry-url: 'https://registry.npmjs.org'
scope: '@graphcommerce'
- name: yarn install && yarn postinstall
run: yarn install && yarn postinstall
- name: create graphcommerce folder
run: |
git clone -b main --depth 1 https://github.com/graphcommerce-org/graphcommerce.git && mkdir -p /tmp/graphcommerce-build
- name: copy gc main to new folder
run: cp -R graphcommerce/examples/magento-graphcms/. /tmp/graphcommerce-build && rm -rf graphcommerce
- name: yarn && yarn build
run: |
cd /tmp/graphcommerce-build && yarn && yarn codegen && yarn build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
notify-end:
if: always()
name: Notify release end
needs: [notify-start, publish]
uses: ho-nl/release-slack-action/.github/workflows/notify-slack-end.yml@main
secrets:
slackToken: ${{ secrets.SLACK_BOT_RELEASE_TOKEN}}
with:
time: ${{ needs.notify-start.outputs.time }}
result: ${{ needs.publish.result }}
channel: slack-test-messages
message: Periodic build
notifyOnlyOnFailure: true