Skip to content

Commit

Permalink
chore: fix release-please packages dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
aversini committed Sep 15, 2024
1 parent 9b46e8c commit 91915bb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 32 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@ on:
pull_request:
branches: [main]

env:
COREPACK_ENABLE_STRICT: 0

jobs:
inspect:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: |
corepack enable
pnpm install
registry-url: "https://registry.npmjs.org"

- name: Setup PNPM
uses: pnpm/action-setup@v4

- name: Install Dependencies
run: pnpm install
22 changes: 5 additions & 17 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ permissions:
contents: write
pull-requests: write

env:
COREPACK_ENABLE_STRICT: 0

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
- name: Initialize Release Please
id: release
uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.NODE_CLI }}

Expand All @@ -32,18 +30,8 @@ jobs:
node-version: 20.x
registry-url: "https://registry.npmjs.org"

# Release Please has already incremented versions and published tags, so we just
# need to publish all unpublished versions to NPM here
# See: https://github.com/lerna/lerna/tree/main/libs/commands/publish#readme
publish-npm:
needs: release-please
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
- run: npx lerna publish from-package --no-push --no-private --yes --loglevel debug
- name: Publish Packages
if: ${{ steps.release.outputs.releases_created }}
run: npx lerna publish from-package --no-push --no-private --yes --loglevel debug
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
7 changes: 3 additions & 4 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"version": "0.0.0",
"npmClient": "pnpm",
"packages": ["packages/*"],
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "independent",
"npmClient": "pnpm"
}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "root",
"private": true,
"workspaces": [
"packages/*"
],
"packageManager": "[email protected]+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
}
4 changes: 3 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
"packages/server": {},
"packages/types": {},
"packages/eslint": {}
}
},
"plugins": ["node-workspace"],
"pull-request-header": ":rocket: Automated Release"
}

0 comments on commit 91915bb

Please sign in to comment.