Skip to content

Commit

Permalink
ci: pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
VirgilClyne committed Nov 10, 2024
1 parent 1fce1cb commit fc7edd6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ jobs:
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: true
- name: Set up Node.js
uses: actions/setup-node@main
with:
node-version: 'latest'
cache: 'npm'
- name: Install dependencies
run: npm install
cache: 'pnpm'
- 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
8 changes: 5 additions & 3 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ jobs:
submodules: recursive
token: ${{ secrets.SUBMODULE_TOKEN }}
ref: dev
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: true
- name: Set up Node.js
uses: actions/setup-node@main
with:
node-version: 'latest'
cache: 'npm'
- name: Install dependencies
run: npm install
cache: 'pnpm'
- 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}

0 comments on commit fc7edd6

Please sign in to comment.