From 5e23469028414bef65b19fa290dc8e5947cbddbf Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 28 Sep 2023 13:27:53 +0800 Subject: [PATCH] ci: update workflows config. --- .github/workflows/ci.yml | 7 +++++-- .github/workflows/pr.yml | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa034e1..ebfb481 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,11 +7,14 @@ on: jobs: build-deploy: runs-on: ubuntu-latest + permissions: + contents: write + id-token: write steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 registry-url: 'https://registry.npmjs.org' - run: npm install @@ -90,7 +93,7 @@ jobs: ${{ steps.changelog.outputs.changelog }} - - run: npm publish --access public + - run: npm publish --access public --provenance name: 📦 rehype-rewrite publish to NPM continue-on-error: true env: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 28c2198..7518890 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -9,8 +9,9 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 registry-url: 'https://registry.npmjs.org' + - run: npm install - run: npm run build - run: npm run type-check