diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d0a24a..9ca27cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,18 +18,23 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v4 + uses: actions/checkout@v6 + with: + fetch-depth: 0 - name: Install pnpm uses: pnpm/action-setup@v4 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: "22" cache: "pnpm" registry-url: "https://registry.npmjs.org" + - name: Update npm for Trusted Publishing + run: npm install -g npm@latest + - name: Install dependencies run: pnpm install --frozen-lockfile @@ -37,9 +42,9 @@ jobs: run: pnpm build - name: Create Release Pull Request or Publish to npm + id: changesets uses: changesets/action@v1 with: publish: pnpm release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_CONFIG_PROVENANCE: true