generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate to pnpm and fix CVE for ip transitive dependency (#419)
* fix CVE for ip transitive dependency * migrate to pnpm * Update CONTRIBUTING.md * Fix ordering of clean script * Consistent use of quotation marks in GH workflows * Add version comments to pinned GH workflow actions --------- Signed-off-by: Frank Hinek <[email protected]> Co-authored-by: Frank Hinek <[email protected]>
- Loading branch information
1 parent
f831621
commit 2b90468
Showing
35 changed files
with
9,235 additions
and
17,965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,21 +40,25 @@ jobs: | |
- name: Checkout source | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 | ||
|
||
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d #v3.0.0 | ||
with: | ||
version: 8 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@5ef044f9d09786428e6e895be6be17937becee3a #v4.0.0 | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org/ | ||
cache: "npm" | ||
cache: 'pnpm' | ||
|
||
- name: Install semver utility | ||
run: npm install -g [email protected] | ||
run: pnpm install -g [email protected] | ||
|
||
# Note - this is not required but it gives a clean failure prior to attempting a release if the GH workflow runner is not authenticated with NPMjs.com | ||
- name: Verify NPM token is authenticated with NPMjs.com | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
run: npm whoami | ||
run: pnpm whoami | ||
|
||
- name: Check if GitHub repo package version is latest | ||
env: | ||
|
@@ -84,17 +88,17 @@ jobs: | |
|
||
- name: Install dependencies | ||
if: env.IS_LATEST == 'true' | ||
run: npm ci | ||
run: pnpm ci | ||
|
||
- name: Build all workspace packages | ||
if: env.IS_LATEST == 'true' | ||
run: npm run build | ||
run: pnpm build | ||
|
||
- name: Publish @web5/${{ matrix.package }}@${{ env.REPO_VERSION }} | ||
if: env.IS_LATEST == 'true' | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
run: | | ||
cd packages/${{ matrix.package }} | ||
npm publish --access public --provenance | ||
pnpm publish --access public --provenance | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"npm.packageManager": "npm" | ||
"npm.packageManager": "pnpm" | ||
} |
Oops, something went wrong.