Merge pull request #2867 from Shopify/dependabot/npm_and_yarn/mongodb… #1221
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: Create release PR and/or publish release to NPM | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| release: | |
| name: Update PR for publishing new release | |
| permissions: | |
| contents: write | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1 | |
| with: | |
| cache: 'pnpm' | |
| node-version: 22.x | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install npm 11.x for OIDC support | |
| run: npm install -g npm@^11.5.1 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Create release Pull Request or publish to NPM | |
| id: changesets | |
| uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3 | |
| with: | |
| title: Packages for release | |
| publish: pnpm release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }} | |
| NPM_CONFIG_PROVENANCE: true |