chore(core): enable provenance and update lerna usage (#16814)
This commit is contained in:
parent
d83184db0d
commit
c9d649e57c
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
@ -2,6 +2,7 @@ name: publish
|
|||||||
env:
|
env:
|
||||||
DEBUG: napi:*
|
DEBUG: napi:*
|
||||||
NX_RUN_GROUP: ${{ github.run_id }}-${{ github.run_attempt }}
|
NX_RUN_GROUP: ${{ github.run_id }}-${{ github.run_attempt }}
|
||||||
|
NPM_CONFIG_PROVENANCE: true
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
@ -203,6 +204,8 @@ jobs:
|
|||||||
if: ${{ github.repository_owner == 'nrwl' }}
|
if: ${{ github.repository_owner == 'nrwl' }}
|
||||||
name: Publish
|
name: Publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
needs:
|
needs:
|
||||||
# - build-freebsd
|
# - build-freebsd
|
||||||
- build
|
- build
|
||||||
|
|||||||
@ -142,19 +142,19 @@ nx test jest
|
|||||||
To make sure your changes do not break any E2E tests, run:
|
To make sure your changes do not break any E2E tests, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nx e2e e2e-cli # or any other project here
|
nx e2e e2e-vite # or any other project here
|
||||||
```
|
```
|
||||||
|
|
||||||
Running E2E tests can take some time, so it is often useful to run a single test. To run a single suite of tests, run:
|
Running E2E tests can take some time, so it is often useful to run a single test. To run a single suite of tests, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nx e2e e2e-cli -t versions # I often add qqqq to my test name so I can use -t qqqq
|
nx e2e e2e-vite -t versions # I often add qqqq to my test name so I can use -t qqqq
|
||||||
```
|
```
|
||||||
|
|
||||||
Sometimes tests pass locally but they fail on the CI. To reproduce the CI environment and be able to debug the issue, run:
|
Sometimes tests pass locally but they fail on the CI. To reproduce the CI environment and be able to debug the issue, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
NX_VERBOSE_LOGGING=true CI=true SELECTED_PM=pnpm pnpm nx e2e e2e-cli --t="should do something is this test"
|
NX_VERBOSE_LOGGING=true CI=true SELECTED_PM=pnpm pnpm nx e2e e2e-vite --t="should do something is this test"
|
||||||
```
|
```
|
||||||
|
|
||||||
The above command sets verbose logging (this exposes stack traces and underlying errors), sets the defaults to be CI-like and sets Pnpm as the selected package manager.
|
The above command sets verbose logging (this exposes stack traces and underlying errors), sets the defaults to be CI-like and sets Pnpm as the selected package manager.
|
||||||
|
|||||||
@ -48,8 +48,6 @@
|
|||||||
"@jest/reporters": "^29.4.1",
|
"@jest/reporters": "^29.4.1",
|
||||||
"@jest/test-result": "^29.4.1",
|
"@jest/test-result": "^29.4.1",
|
||||||
"@jest/types": "^29.4.1",
|
"@jest/types": "^29.4.1",
|
||||||
"@lerna/publish": "6.0.0",
|
|
||||||
"@lerna/version": "6.0.0",
|
|
||||||
"@monodon/rust": "1.1.2",
|
"@monodon/rust": "1.1.2",
|
||||||
"@napi-rs/cli": "2.14.0",
|
"@napi-rs/cli": "2.14.0",
|
||||||
"@nestjs/cli": "^9.0.0",
|
"@nestjs/cli": "^9.0.0",
|
||||||
@ -194,7 +192,7 @@
|
|||||||
"jsonc-eslint-parser": "^2.1.0",
|
"jsonc-eslint-parser": "^2.1.0",
|
||||||
"jsonc-parser": "3.2.0",
|
"jsonc-parser": "3.2.0",
|
||||||
"kill-port": "^1.6.1",
|
"kill-port": "^1.6.1",
|
||||||
"lerna": "6.0.0",
|
"lerna": "6.6.2",
|
||||||
"less": "4.1.3",
|
"less": "4.1.3",
|
||||||
"less-loader": "11.1.0",
|
"less-loader": "11.1.0",
|
||||||
"license-webpack-plugin": "^4.0.2",
|
"license-webpack-plugin": "^4.0.2",
|
||||||
|
|||||||
1580
pnpm-lock.yaml
generated
1580
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -7,8 +7,8 @@ import { join } from 'path';
|
|||||||
|
|
||||||
import { parse } from 'semver';
|
import { parse } from 'semver';
|
||||||
|
|
||||||
import * as version from '@lerna/version';
|
const version = require('lerna/commands/version');
|
||||||
import * as publish from '@lerna/publish';
|
const publish = require('lerna/commands/publish');
|
||||||
|
|
||||||
const lernaJsonPath = join(__dirname, '../lerna.json');
|
const lernaJsonPath = join(__dirname, '../lerna.json');
|
||||||
const originalLernaJson = readFileSync(lernaJsonPath);
|
const originalLernaJson = readFileSync(lernaJsonPath);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user