From 76769edefc866ba642f45adf5f687f7c01db79ff Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 22 Sep 2023 13:49:56 +0800 Subject: [PATCH] ci: update workflows config. --- .github/workflows/ci.yml | 2 ++ .github/workflows/main.yml | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50f6446b..dfb5e696 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ jobs: fail-fast: false matrix: node-version: + - 20 - 18 - 16 steps: @@ -34,6 +35,7 @@ jobs: fail-fast: false matrix: node-version: + - 20 - 18 - 16 steps: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 04fb0996..4f494799 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.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 @@ -73,7 +76,7 @@ jobs: ${{ steps.changelog.outputs.changelog }} - name: 📦 idoc publish to NPM - run: npm publish + run: npm publish --access public --provenance continue-on-error: true env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} \ No newline at end of file