|
1 |
| -name: Changesets |
| 1 | +# name: Changesets |
2 | 2 |
|
3 |
| -on: |
4 |
| - push: |
5 |
| - branches: |
6 |
| - - v-next |
| 3 | +# on: |
| 4 | +# push: |
| 5 | +# branches: |
| 6 | +# - v-next |
7 | 7 |
|
8 |
| -jobs: |
9 |
| - changesetcheck: |
10 |
| - name: Changeset Check |
11 |
| - runs-on: ubuntu-latest |
12 |
| - outputs: |
13 |
| - CHANGESETS: ${{ steps.changesetcheck.outputs.CHANGESETS }} |
14 |
| - steps: |
15 |
| - - name: checkout code repository |
16 |
| - uses: actions/checkout@v4 |
17 |
| - with: |
18 |
| - fetch-depth: 0 |
19 |
| - - uses: ./.github/actions/setup-env |
20 |
| - with: |
21 |
| - node-version: 22 |
22 |
| - - name: Install |
23 |
| - run: pnpm install --no-frozen-lockfile |
24 |
| - - name: Changeset Check |
25 |
| - id: changesetcheck |
26 |
| - run: | |
27 |
| - pnpm changeset status --output=changes.json |
| 8 | +# jobs: |
| 9 | +# changesetcheck: |
| 10 | +# name: Changeset Check |
| 11 | +# runs-on: ubuntu-latest |
| 12 | +# outputs: |
| 13 | +# CHANGESETS: ${{ steps.changesetcheck.outputs.CHANGESETS }} |
| 14 | +# steps: |
| 15 | +# - name: checkout code repository |
| 16 | +# uses: actions/checkout@v4 |
| 17 | +# with: |
| 18 | +# fetch-depth: 0 |
| 19 | +# - uses: ./.github/actions/setup-env |
| 20 | +# with: |
| 21 | +# node-version: 22 |
| 22 | +# - name: Install |
| 23 | +# run: pnpm install --no-frozen-lockfile |
| 24 | +# - name: Changeset Check |
| 25 | +# id: changesetcheck |
| 26 | +# run: | |
| 27 | +# pnpm changeset status --output=changes.json |
28 | 28 |
|
29 |
| - if grep "\"releases\": \[\]," changes.json; then |
30 |
| - echo "No changesets found." |
31 |
| - echo "changesets=notfound" >> "$GITHUB_OUTPUT" |
32 |
| - else |
33 |
| - echo "Changesets found." |
34 |
| - echo "changesets=found" >> "$GITHUB_OUTPUT" |
35 |
| - fi |
| 29 | +# if grep "\"releases\": \[\]," changes.json; then |
| 30 | +# echo "No changesets found." |
| 31 | +# echo "changesets=notfound" >> "$GITHUB_OUTPUT" |
| 32 | +# else |
| 33 | +# echo "Changesets found." |
| 34 | +# echo "changesets=found" >> "$GITHUB_OUTPUT" |
| 35 | +# fi |
36 | 36 |
|
37 |
| - release-pre-check: |
38 |
| - name: Release Pre-Check |
39 |
| - runs-on: ubuntu-latest |
40 |
| - needs: [changesetcheck] |
41 |
| - if: needs.changesetcheck.outputs.CHANGESETS == 'found' |
42 |
| - steps: |
43 |
| - - name: checkout code repository |
44 |
| - uses: actions/checkout@v4 |
45 |
| - with: |
46 |
| - fetch-depth: 0 |
47 |
| - - uses: ./.github/actions/setup-env |
48 |
| - with: |
49 |
| - node-version: 22 |
50 |
| - - name: Install |
51 |
| - run: pnpm install --no-frozen-lockfile |
52 |
| - - name: Run full check (build, lint and test) |
53 |
| - run: pnpm run vnext-full-check |
| 37 | +# release-pre-check: |
| 38 | +# name: Release Pre-Check |
| 39 | +# runs-on: ubuntu-latest |
| 40 | +# needs: [changesetcheck] |
| 41 | +# if: needs.changesetcheck.outputs.CHANGESETS == 'found' |
| 42 | +# steps: |
| 43 | +# - name: checkout code repository |
| 44 | +# uses: actions/checkout@v4 |
| 45 | +# with: |
| 46 | +# fetch-depth: 0 |
| 47 | +# - uses: ./.github/actions/setup-env |
| 48 | +# with: |
| 49 | +# node-version: 22 |
| 50 | +# - name: Install |
| 51 | +# run: pnpm install --no-frozen-lockfile |
| 52 | +# - name: Run full check (build, lint and test) |
| 53 | +# run: pnpm run vnext-full-check |
54 | 54 |
|
55 |
| - release: |
56 |
| - name: Release |
57 |
| - runs-on: ubuntu-latest |
58 |
| - needs: [release-pre-check] |
59 |
| - permissions: |
60 |
| - contents: write |
61 |
| - id-token: write |
62 |
| - steps: |
63 |
| - - name: checkout code repository |
64 |
| - uses: actions/checkout@v4 |
65 |
| - with: |
66 |
| - fetch-depth: 0 |
67 |
| - - uses: ./.github/actions/setup-env |
68 |
| - with: |
69 |
| - node-version: 22 |
70 |
| - - name: Install |
71 |
| - run: pnpm install --no-frozen-lockfile |
72 |
| - - name: Apply and commit changesets |
73 |
| - run: | |
74 |
| - echo "Changesets found. Starting release." |
| 55 | +# release: |
| 56 | +# name: Release |
| 57 | +# runs-on: ubuntu-latest |
| 58 | +# needs: [release-pre-check] |
| 59 | +# permissions: |
| 60 | +# contents: write |
| 61 | +# id-token: write |
| 62 | +# steps: |
| 63 | +# - name: checkout code repository |
| 64 | +# uses: actions/checkout@v4 |
| 65 | +# with: |
| 66 | +# fetch-depth: 0 |
| 67 | +# - uses: ./.github/actions/setup-env |
| 68 | +# with: |
| 69 | +# node-version: 22 |
| 70 | +# - name: Install |
| 71 | +# run: pnpm install --no-frozen-lockfile |
| 72 | +# - name: Apply and commit changesets |
| 73 | +# run: | |
| 74 | +# echo "Changesets found. Starting release." |
75 | 75 |
|
76 |
| - # Apply prerelease changesets |
77 |
| - pnpm changeset version |
| 76 | +# # Apply prerelease changesets |
| 77 | +# pnpm changeset version |
78 | 78 |
|
79 |
| - # Update the pnpm package lock file |
80 |
| - pnpm install --no-frozen-lockfile |
| 79 | +# # Update the pnpm package lock file |
| 80 | +# pnpm install --no-frozen-lockfile |
81 | 81 |
|
82 |
| - # Commit the changes and push |
83 |
| - git config --global user.name "Github Actions" |
84 |
| - git config --global user.email "[email protected]" |
85 |
| - git commit -a -m "chore: v-next version bump" |
86 |
| - git push |
87 |
| - env: |
88 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
89 |
| - - name: Setup npmrc |
90 |
| - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.VNEXT_NPM_TOKEN }}" > .npmrc |
91 |
| - - name: Publish |
92 |
| - run: pnpm publish --filter "./v-next/**" -r --no-git-checks --tag next --access public |
93 |
| - env: |
94 |
| - NPM_CONFIG_PROVENANCE: true |
| 82 | +# # Commit the changes and push |
| 83 | +# git config --global user.name "Github Actions" |
| 84 | +# git config --global user.email "[email protected]" |
| 85 | +# git commit -a -m "chore: v-next version bump" |
| 86 | +# git push |
| 87 | +# env: |
| 88 | +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 89 | +# - name: Setup npmrc |
| 90 | +# run: echo "//registry.npmjs.org/:_authToken=${{ secrets.VNEXT_NPM_TOKEN }}" > .npmrc |
| 91 | +# - name: Publish |
| 92 | +# run: pnpm publish --filter "./v-next/**" -r --no-git-checks --tag next --access public |
| 93 | +# env: |
| 94 | +# NPM_CONFIG_PROVENANCE: true |
0 commit comments