fix(deps): update dependency @sanity/client to ^6.22.4 #2144
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test & release | |
on: | |
push: | |
pull_request: | |
branches: [1.x, alpha, beta, main] | |
permissions: | |
contents: read # for checkout | |
jobs: | |
test: | |
runs-on: ${{ matrix.platform }} | |
name: Node.js ${{ matrix.node-version }} / ${{ matrix.platform }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ubuntu-latest] | |
# node-version: [lts/*, current] | |
node-version: [lts/*] | |
include: | |
- platform: macos-latest | |
node-version: lts/* | |
# - platform: windows-latest | |
# node-version: lts/* | |
steps: | |
- uses: actions/checkout@v4 | |
# It's only necessary to do this for windows, as mac and ubuntu are sane OS's that already use LF | |
- if: matrix.platform == 'windows-latest' | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- uses: pnpm/action-setup@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version: ${{ matrix.node-version }} | |
- run: corepack enable && pnpm --version | |
- run: pnpm install | |
- if: matrix.node-version == 'current' | |
run: pnpm lint | |
- if: matrix.platform != 'windows-latest' | |
run: pnpm build | |
- run: pnpm test -- --retry=30 | |
release: | |
permissions: | |
id-token: write # to enable use of OIDC for npm provenance | |
name: 'Semantic release' | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ secrets.ECOSPARK_APP_ID }} | |
private-key: ${{ secrets.ECOSPARK_APP_PRIVATE_KEY }} | |
- uses: actions/checkout@v4 | |
with: | |
# Need to fetch entire commit history to | |
# analyze every commit since last release | |
fetch-depth: 0 | |
# Uses generated token to allow pushing commits back | |
token: ${{ steps.app-token.outputs.token }} | |
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config | |
persist-credentials: false | |
- uses: pnpm/action-setup@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version: lts/* | |
- run: corepack enable && pnpm --version | |
- run: pnpm install | |
- run: pnpm exec semantic-release | |
env: | |
NPM_CONFIG_PROVENANCE: true | |
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |