diff --git a/.github/workflows/main-workflow.yml b/.github/workflows/main-workflow.yml index 7376806..4f03746 100644 --- a/.github/workflows/main-workflow.yml +++ b/.github/workflows/main-workflow.yml @@ -16,17 +16,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x] + node-version: [22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v3 - - name: Use Node.js 20 + - name: Use Node.js 22 uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 22 cache: 'npm' registry-url: https://registry.npmjs.org/ - - run: npm ci --legacy-peer-deps + - run: npm ci - run: npm test # Job to build the package @@ -38,9 +38,9 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 22 registry-url: https://registry.npmjs.org/ - - run: npm ci --legacy-peer-deps + - run: npm ci - run: npm run build # Job to publish the package to npm @@ -52,9 +52,9 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 22 registry-url: https://registry.npmjs.org/ - - run: npm ci --legacy-peer-deps + - run: npm ci - run: npm publish --access=public env: NPM_PERSONAL_TOKEN: ${{secrets.npm_token}}