diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2593281403..f6ef7e669f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,8 +6,15 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "18.x" + registry-url: "https://registry.npmjs.org" - name: Publish package env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} @@ -15,6 +22,6 @@ jobs: # Currently, only npm supports publishing packages with provenance # https://docs.npmjs.com/generating-provenance-statements run: | - npm install + npm install --force npm run build:docs & npm run build:lib npm publish --provenance --access public