|
1 | | -# name: Release |
| 1 | +name: Release |
2 | 2 |
|
3 | | -# on: |
4 | | -# push: |
5 | | -# branches: [main] |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [main] |
6 | 6 |
|
7 | | -# permissions: |
8 | | -# contents: write # Required for Changesets to push branches |
9 | | -# id-token: write # Required for OIDC authentication |
10 | | -# pull-requests: write # Required for Changesets to create PRs |
| 7 | +permissions: |
| 8 | + contents: write # Required for Changesets to push branches |
| 9 | + id-token: write # Required for OIDC authentication |
| 10 | + pull-requests: write # Required for Changesets to create PRs |
11 | 11 |
|
12 | | -# concurrency: |
13 | | -# group: ${{ github.workflow }}-${{ github.ref }} |
14 | | -# cancel-in-progress: false |
| 12 | +concurrency: |
| 13 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 14 | + cancel-in-progress: false |
15 | 15 |
|
16 | | -# jobs: |
17 | | -# changesets: |
18 | | -# name: changeset release |
19 | | -# if: github.event_name == 'push' |
20 | | -# runs-on: ubuntu-22.04 |
21 | | -# environment: |
22 | | -# name: npm-shop-cli |
23 | | -# url: https://www.npmjs.com/package/@shopify/shop-cli |
24 | | -# permissions: |
25 | | -# contents: write |
26 | | -# pull-requests: write |
27 | | -# id-token: write |
28 | | -# steps: |
29 | | -# - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
30 | | -# with: |
31 | | -# fetch-depth: 0 |
32 | | -# - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0 |
33 | | -# with: |
34 | | -# version: 10.28.0 |
35 | | -# - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 |
36 | | -# with: |
37 | | -# node-version: 24 |
38 | | -# cache: pnpm |
39 | | -# - run: pnpm install --frozen-lockfile |
40 | | -# - uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1.8.0 |
41 | | -# with: |
42 | | -# version: pnpm version-packages |
43 | | -# publish: pnpm release |
44 | | -# env: |
45 | | -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
46 | | -# NPM_CONFIG_PROVENANCE: "true" |
47 | | -# NPM_TOKEN: "" |
48 | | -# NODE_AUTH_TOKEN: "" |
| 16 | +jobs: |
| 17 | + changesets: |
| 18 | + name: changeset release |
| 19 | + if: github.event_name == 'push' |
| 20 | + runs-on: ubuntu-22.04 |
| 21 | + environment: |
| 22 | + name: npm-shop-cli |
| 23 | + url: https://www.npmjs.com/package/@shopify/shop-cli |
| 24 | + permissions: |
| 25 | + contents: write |
| 26 | + pull-requests: write |
| 27 | + id-token: write |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
| 30 | + with: |
| 31 | + fetch-depth: 0 |
| 32 | + - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0 |
| 33 | + with: |
| 34 | + version: 10.28.0 |
| 35 | + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 |
| 36 | + with: |
| 37 | + node-version: 24 |
| 38 | + cache: pnpm |
| 39 | + - run: pnpm install --frozen-lockfile |
| 40 | + - uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1.8.0 |
| 41 | + with: |
| 42 | + version: pnpm version-packages |
| 43 | + publish: pnpm release |
| 44 | + env: |
| 45 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 46 | + NPM_CONFIG_PROVENANCE: "true" |
| 47 | + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
0 commit comments