Merge pull request #34 from Shopify/setup-release-yml-odic #68
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: Release | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write # Required for Changesets to push branches | |
| id-token: write # Required for OIDC authentication | |
| pull-requests: write # Required for Changesets to create PRs | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| changesets: | |
| name: changeset release | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-24.04 | |
| environment: | |
| name: npm-shop-cli | |
| url: https://www.npmjs.com/package/@shopify/shop-cli | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: shop/setup-javascript-action@main | |
| with: | |
| node-version-file: package.json | |
| pnpm-version: 10.28.0 | |
| - run: pnpm install --frozen-lockfile | |
| - uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1.8.0 | |
| with: | |
| version: pnpm version-packages | |
| publish: pnpm release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # NPM_CONFIG_PROVENANCE: "true" | |
| NPM_TOKEN: '' |