Skip to content
Merged

Up #866

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 8 additions & 17 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,23 @@ on:

concurrency:
cancel-in-progress: true
group: ${{ github.ref }}
group: pr-${{ github.event.pull_request.number }}

jobs:
test:
if: ${{ !contains(github.head_ref, 'release-please-') }}
name: Test
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22, 24]
node-version: [24, 26]

steps:
- name: Checkout project
uses: actions/checkout@v6

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
cache: npm
node-version: ${{ matrix.node-version }}

- name: Yarn
run: yarn install --immutable

- name: Build
run: yarn build

- name: Test
run: yarn test
- run: npm ci
- run: npm run build
- run: npm test
31 changes: 0 additions & 31 deletions .github/workflows/release-please-yarn.yml

This file was deleted.

36 changes: 4 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,6 @@ jobs:
- id: release-please
uses: googleapis/release-please-action@v4

release-update-lockfile:
needs: release-github
if: needs.release-github.outputs.pr
runs-on: dmg-arc-ubuntu
steps:
- uses: actions/checkout@v6
with:
ref: ${{ fromJson(needs.release-github.outputs.pr).headBranchName }}
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
- uses: ./.github/actions/setup-git
- run: yarn --no-immutable
- id: yarn-lock-changes
run: | # shell
if git diff --quiet yarn.lock; then
echo "No lockfile changes"
else
echo "Detected lockfile changes"
echo "changes=true" >> $GITHUB_TOKEN
git add yarn.lock .pnp.cjs .yarn
git commit -m "chore: update lockfile"
fi
- if: steps.yarn-lock-changes.outputs.changes == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PUSH_TOKEN }}

npm:
needs: release-github
if: needs.release-github.outputs.releases_created == 'true'
Expand All @@ -61,15 +32,16 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
cache: npm
node-version-file: .nvmrc
- run: yarn install --immutable
- run: yarn build
- run: npm ci
- run: npm run build
- env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: | # shell
echo '${{ needs.release-github.outputs.paths }}' | jq -r '.[]' | while read -r path
do
cd $path
yarn npm publish
npm publish
cd -
done
Loading