Skip to content

Commit

Permalink
ci: pnpm
Browse files Browse the repository at this point in the history
Update build.yml
Update dev.yml
Delete package-lock.json
  • Loading branch information
VirgilClyne committed Nov 10, 2024
1 parent 1fce1cb commit f1d2086
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4,529 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@ jobs:
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
run_install: false
- name: Set up Node.js
uses: actions/setup-node@main
with:
node-version: 'latest'
cache: 'npm'
cache: 'pnpm'
- name: Install dependencies
run: npm install
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
- name: Update local package.json version from release tag
if: github.ref_type == 'tag'
uses: BellCubeDev/update-package-version-by-release-tag@v2
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,20 @@ jobs:
submodules: recursive
token: ${{ secrets.SUBMODULE_TOKEN }}
ref: dev
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
run_install: false
- name: Set up Node.js
uses: actions/setup-node@main
with:
node-version: 'latest'
cache: 'npm'
cache: 'pnpm'
- name: Install dependencies
run: npm install
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
- name: Build
run: npm run build:dev
- name: Upload artifact
Expand Down
4 changes: 3 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@nsnanocat:registry=https://npm.pkg.github.com
registry=https://registry.npmjs.org/
@nsnanocat:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
Loading

0 comments on commit f1d2086

Please sign in to comment.