diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dd69128..b14f748 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node: ['16.x'] + node: ['22.x'] os: [ubuntu-latest, windows-latest] steps: @@ -25,11 +25,14 @@ jobs: with: node-version: ${{ matrix.node }} + - uses: pnpm/action-setup@v4 + name: Install pnpm + - name: Install deps and build (with cache) - uses: bahmutov/npm-install@v1 + run: pnpm install - name: Lint - run: yarn lint + run: pnpm lint # Did not work without local files with test data # - name: Test # run: yarn test --ci --coverage --maxWorkers=2 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index badf9ba..f6237b8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,14 +5,20 @@ on: jobs: build: runs-on: ubuntu-latest + steps: - uses: actions/checkout@v2 + # Setup .npmrc file to publish to npm - uses: actions/setup-node@v2 with: - node-version: '16.x' + node-version: '22.x' registry-url: 'https://registry.npmjs.org' - - run: yarn install - - run: yarn publish + + - uses: pnpm/action-setup@v4 + + - run: pnpm install + + - run: pnpm publish env: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} diff --git a/package.json b/package.json index e58fcea..2e5c07a 100644 --- a/package.json +++ b/package.json @@ -129,6 +129,7 @@ "eslint" ] }, + "packageManager": "^pnpm@9.6.0", "browser": { "_process": false, "fs": false,