From 6a1e1681d55b1fd1292fb81b808bdc93cd0565c9 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 28 Sep 2023 10:38:09 +0800 Subject: [PATCH] ci: update workflows config. --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 662d757..31aa000 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 @@ -89,7 +92,7 @@ jobs: ${{ steps.changelog.outputs.changelog }} - - 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