diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 20bebdd..26e8fd5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 22 registry-url: https://registry.npmjs.org/ cache: npm - run: npm install -g npm@latest @@ -29,15 +29,15 @@ jobs: NODE_AUTH_TOKEN: ${{secrets.npm_token}} publish-github: name: Publish to GitHub Packages - runs-on: ubuntu-latest - permissions: + runs-on: ubuntu-latest + permissions: contents: read packages: write steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 22 registry-url: https://npm.pkg.github.com cache: npm scope: '@github' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 20ee438..7a23343 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: - name: Use Node.js 18.x uses: actions/setup-node@v3 with: - node-version: 18.x + node-version: 22 - name: npm install, build, and test run: | npm it