Upgrade vanilla-extract (#934) #95
This file contains hidden or 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: Open release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| release: | |
| name: Prepare release with Changesets | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get Token | |
| id: get-token | |
| uses: saleor/saleor-internal-actions/[email protected] | |
| with: | |
| vault-url: ${{ secrets.VAULT_URL }} | |
| vault-jwt: ${{ secrets.VAULT_JWT }} | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ steps.get-token.outputs.token }} | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
| with: | |
| run_install: false | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Create Release Pull Request | |
| uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7 | |
| id: changesets | |
| with: | |
| title: Release to npm | |
| commit: Release to npm | |
| publish: "pnpm publish:ci-prod" | |
| env: | |
| # Use private access token so Github can trigger another workflow from this one | |
| GITHUB_TOKEN: ${{ steps.get-token.outputs.token }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |