Skip to content

Commit b390149

Browse files
committed
chore(ci): replace monodeploy with monoweave and enable OIDC
1 parent b13ff3a commit b390149

File tree

8 files changed

+2056
-1588
lines changed

8 files changed

+2056
-1588
lines changed

.github/workflows/publish-to-npm.workflow.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
permissions:
77
contents: write
8+
id-token: write # Required for OIDC publish
89

910
concurrency:
1011
cancel-in-progress: true
@@ -21,7 +22,6 @@ jobs:
2122
- uses: actions/setup-node@v4
2223
with:
2324
node-version: 20.x
24-
registry-url: 'https://registry.npmjs.org'
2525
cache: yarn
2626

2727
- name: Configure git
@@ -32,9 +32,8 @@ jobs:
3232
- run: yarn
3333
- run: yarn build:release
3434
- run: yarn test
35-
- run: yarn monodeploy
35+
# Yarn 4.10+ automatically uses OIDC when running in GitHub Actions
36+
- run: yarn monoweave
3637
env:
37-
# needed to publish to npm
38-
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39-
# needed to create a release
38+
# Needed to create a release
4039
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.yarn/releases/yarn-4.12.0.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-4.6.0.cjs

Lines changed: 0 additions & 934 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-4.6.0.cjs
3+
npmRegistryServer: "https://registry.npmjs.org"
4+
npmPublishProvenance: true
5+
6+
yarnPath: .yarn/releases/yarn-4.12.0.cjs

monodeploy.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

monoweave.config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
preset: 'monoweave/preset-recommended'
3+
changesetIgnorePatterns: ['**/test/**']
4+
conventionalChangelogConfig: '@tophat/conventional-changelog-config'
5+
changelogFilename: '<packageDir>/CHANGES.md'
6+
git:
7+
push: true
8+
plugins: ['@monoweave/plugin-github']

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"packages/transactional-adapters/*",
2727
"docs"
2828
],
29-
"packageManager": "yarn@4.6.0",
29+
"packageManager": "yarn@4.12.0",
3030
"scripts": {
3131
"test": "yarn workspaces foreach --all --topological-dev run test",
3232
"build": "yarn workspaces foreach --all --topological-dev --exclude nestjs-cls-docs run build",
@@ -39,15 +39,15 @@
3939
},
4040
"devDependencies": {
4141
"@goldstack/utils-typescript-references": "^0.3.13",
42-
"@monodeploy/plugin-github": "^2.0.2",
42+
"@monoweave/cli": "^2.2.0",
43+
"@monoweave/plugin-github": "^2.0.2",
4344
"@tophat/conventional-changelog-config": "^1.0.1",
4445
"@typescript-eslint/eslint-plugin": "^8.53.0",
4546
"@typescript-eslint/parser": "^8.53.0",
4647
"dependency-cruiser": "^16.10.1",
4748
"eslint": "^9.39.2",
4849
"eslint-config-prettier": "^10.1.8",
4950
"eslint-plugin-prettier": "^5.5.5",
50-
"monodeploy": "^5.0.2",
5151
"prettier": "^3.8.0",
5252
"typescript": "5.9.3"
5353
}

0 commit comments

Comments
 (0)