diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d34fc8..c79ce9c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,7 @@ on: permissions: contents: write pull-requests: write + id-token: write jobs: release: @@ -21,9 +22,29 @@ jobs: uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" + registry-url: "https://registry.npmjs.org" - run: npm install + - name: Install rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable + target: wasm32-wasip1 + + - name: Cache cargo dependencies + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + - name: Run Changeset uses: changesets/action@v1 with: @@ -31,4 +52,3 @@ jobs: publish: npx changeset publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }}