Skip to content

Commit

Permalink
migrate ci to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrrt committed Mar 31, 2024
1 parent 1a7f6ff commit b355671
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ workflows:
jobs:
- node/test:
version: '19.6.0'
pkg-manager: yarn
pkg-manager: pnpm
17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- args: [--global, gulp, prettier, typescript]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand All @@ -22,13 +29,13 @@ jobs:
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- run: yarn install --ignore-engines
- run: yarn test
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- run: pnpm install
- run: pnpm test
env:
NODE_ENV: test
STAGE: test
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ test_with_coverage:


deploy_lib:
yarn lib:publish
pnpm lib:publish

# documentations
deploy_docs:
yarn docs:deploy
pnpm docs:deploy
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "keylab",
"version": "0.1.30",
"version": "0.1.32",
"source": "src/index.ts",
"main": "dist/index.js",
"description": "keylab is a library aiming to create and validate JSON Web Tokens without hussle or prerequisitie cryptography knowledge.",
Expand All @@ -17,7 +17,7 @@
"size": "node scripts/file-size ./dist/index.js ./dist/index.js.map",
"lib:build:clean": "rm -rf pkg",
"build": "pnpm lib:build:clean && tsup src/index.ts",
"lib:publish": "pnpm build && pnpm publish",
"lib:publish": "pnpm build && pnpm publish --no-git-checks",
"version": "npm run build"
},
"repository": {
Expand Down

0 comments on commit b355671

Please sign in to comment.