Skip to content

chore(repo): update jest (#751) #718

chore(repo): update jest (#751)

chore(repo): update jest (#751) #718

Workflow file for this run

name: Merge
on:
push:
branches:
- main
jobs:
setup:
runs-on: ubuntu-latest
outputs:
tasks: ${{ steps.tasks.outputs.tasks }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: yarn
- uses: paularmstrong/onerepo/actions/get-tasks@main
id: tasks
with:
packageManager: yarn
lifecycle: pre-merge
overrideBin: './bin/one.mjs'
verbosity: 5
tasks:
runs-on: ubuntu-latest
needs: setup
if: ${{ fromJSON(needs.setup.outputs.tasks).parallel != '[]' && fromJSON(needs.setup.outputs.tasks).parallel != '[]' }}
strategy:
fail-fast: false
matrix:
task:
- ${{ fromJSON(needs.setup.outputs.tasks).parallel }}
- ${{ fromJSON(needs.setup.outputs.tasks).serial }}
node:
- 18
- 20
name: v${{ matrix.node }} ${{ join(matrix.task.*.name, ', ') }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn
- run: yarn
- uses: paularmstrong/onerepo/actions/run-task@main
with:
task: |
${{ toJSON(matrix.task) }}
publish:
needs: tasks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
registry-url: https://registry.npmjs.org
- run: yarn
- name: Publish versioned workspaces
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
./bin/one.mjs changesets publish --skip-auth -vvvvv