diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 6c0bb5f..1bd546e 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -11,11 +11,11 @@ jobs: if: "!startsWith(github.event.head_commit.message, '[ci skip]')" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Use Node.js 18 - uses: actions/setup-node@v3.5.1 + - uses: actions/checkout@v4 + - name: Use Node.js 20 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run build @@ -23,7 +23,7 @@ jobs: - run: git config --global user.name "GitHub CD bot" - run: git config --global user.email "github-cd-bot@example.com" - run: npm version ${{ github.event.inputs.updateType }} -m "[ci skip] %s" - - run: npm publish + - run: npm publish --provenance env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: git push --follow-tags diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cc4c563..0012314 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,11 +5,11 @@ jobs: if: "!startsWith(github.event.head_commit.message, '[ci skip]')" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3.5.1 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm test