diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 392e507..de40a66 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,11 +16,14 @@ jobs: contents: write # to create release (changesets/action) issues: write # to post issue comments (changesets/action) pull-requests: write # to create pull request (changesets/action) + id-token: write # to authenticate to npm via OIDC trusted publishing steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' + # Trusted publishing requires npm >= 11.5.1 + - run: npm install -g npm@latest && npm -v - run: yarn install --frozen-lockfile - id: changesets uses: changesets/action@v1 @@ -28,4 +31,3 @@ jobs: publish: yarn release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index bfd8663..07a7b38 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,6 @@ build .vscode -coverage \ No newline at end of file +coverage + +.claude \ No newline at end of file diff --git a/.nvmrc b/.nvmrc index 2dbbe00..7377d13 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.11.1 +22.17.1