Skip to content

Commit

Permalink
yarn berry adapt (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe authored Nov 6, 2023
1 parent 67fab1a commit 63b627b
Show file tree
Hide file tree
Showing 6 changed files with 5,461 additions and 41 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/publish-github-packages.yaml

This file was deleted.

13 changes: 10 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,24 @@ jobs:
packages: read
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: "18.x"
registry-url: "https://npm.pkg.github.com"
# Defaults to the user or organization that owns the workflow file
scope: "@agoraio-extensions"

- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://${{ secrets.GH_TOKEN }}@github.com/".insteadOf ssh://[email protected]/
- name: Run unit test
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install
npm run test
yarn set version berry
yarn
yarn run test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules/
dist/
package-lock.json
.yarn
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodeLinker: node-modules
# httpsProxy: "http://127.0.0.1:7890"
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"@agoraio-extensions/cxx-parser": "latest",
"@agoraio-extensions/terra-core": "latest",
"@agoraio-extensions/cxx-parser": "[email protected]:AgoraIO-Extensions/terra.git#head=main&workspace=cxx-parser",
"@agoraio-extensions/terra-core": "[email protected]:AgoraIO-Extensions/terra.git#head=main&workspace=terra-core",
"mustache": "^4.2.0"
},
"devDependencies": {
Expand All @@ -42,5 +42,6 @@
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 63b627b

Please sign in to comment.