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 fefb8a6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4,535 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,29 @@ 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
with:
version: ${{ github.ref_name }}
keep-v: "false" # If set to "true", will not remove any 'v' prefix from the version number.
ignore-semver-check: "false" # If set to "true", will not check if the version number is a valid semver version.
- name: Build scripts
run: npm run build
- name: Generate modules
run: npm run build:args
- name: Build
run: pnpm build
- name: Upload artifact
uses: actions/upload-artifact@master
with:
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,22 @@ 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
- name: Build
run: npm run build:dev
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
- name: Build:dev
run: pnpm dev
- name: Upload artifact
uses: actions/upload-artifact@master
with:
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 fefb8a6

Please sign in to comment.