diff --git a/.circleci/config.yml b/.circleci/config.yml index ab1873e..9f6b1b2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,4 +6,4 @@ workflows: jobs: - node/test: version: '19.6.0' - pkg-manager: yarn \ No newline at end of file + pkg-manager: pnpm \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fe1583..77bf79f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 diff --git a/Makefile b/Makefile index da2062a..6a77c12 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,8 @@ test_with_coverage: deploy_lib: - yarn lib:publish + pnpm lib:publish # documentations deploy_docs: - yarn docs:deploy \ No newline at end of file + pnpm docs:deploy \ No newline at end of file diff --git a/package.json b/package.json index bccba0f..eed96b8 100644 --- a/package.json +++ b/package.json @@ -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.", @@ -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": {