File tree Expand file tree Collapse file tree 3 files changed +140
-0
lines changed
Expand file tree Collapse file tree 3 files changed +140
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref }}
10+ cancel-in-progress : true
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Setup pnpm
20+ uses : pnpm/action-setup@v4
21+ with :
22+ run_install : false
23+
24+ - name : Setup Node
25+ uses : actions/setup-node@v4
26+ with :
27+ node-version-file : " .nvmrc"
28+ cache : " pnpm"
29+
30+ - name : Install dependencies
31+ run : pnpm install --frozen-lockfile
32+
33+ - name : Lint
34+ run : pnpm lint
35+
36+ - name : Run build
37+ run : pnpm build
38+
39+ # - name: Run tests
40+ # run: pnpm test:ci
Original file line number Diff line number Diff line change 1+ name : " Publish Snapshot Release"
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths-ignore :
8+ # - '.github/**'
9+ - " **/package.json"
10+
11+ env :
12+ NPM_TOKEN : ${{ secrets.NPM_AUTOMATION_FROM_CHANCE }}
13+
14+ concurrency : ${{ github.workflow }}-${{ github.ref }}
15+
16+ jobs :
17+ publish-snapshot :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v4
22+
23+ - name : Setup pnpm
24+ uses : pnpm/action-setup@v4
25+ with :
26+ run_install : false
27+
28+ - name : Setup Node
29+ uses : actions/setup-node@v4
30+ with :
31+ node-version-file : " .nvmrc"
32+ registry-url : " https://registry.npmjs.org"
33+ cache : " pnpm"
34+
35+ - name : Install dependencies
36+ run : pnpm install --frozen-lockfile
37+
38+ - name : Build packages
39+ run : pnpm build
40+
41+ - name : Write .npmrc
42+ run : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
43+
44+ - name : Update snapshot version
45+ run : pnpm run bump:next
46+
47+ - name : Publish snapshot
48+ run : pnpm run release:next --no-git-checks
Original file line number Diff line number Diff line change 1+ name : " Publish Stable Release"
2+
3+ on :
4+ push :
5+ branches :
6+ - stable
7+
8+ env :
9+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
10+ NPM_TOKEN : ${{ secrets.NPM_AUTOMATION_FROM_CHANCE }}
11+
12+ concurrency : ${{ github.workflow }}-${{ github.ref }}
13+
14+ jobs :
15+ publish-stable :
16+ name : Version or publish
17+ timeout-minutes : 15
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v4
22+
23+ - name : Setup pnpm
24+ uses : pnpm/action-setup@v4
25+ with :
26+ run_install : false
27+
28+ - name : Setup Node
29+ uses : actions/setup-node@v4
30+ with :
31+ node-version-file : " .nvmrc"
32+ registry-url : " https://registry.npmjs.org"
33+ cache : " pnpm"
34+
35+ - name : Install dependencies
36+ run : pnpm install --frozen-lockfile
37+
38+ - name : Build packages
39+ run : pnpm build
40+
41+ - name : Write .npmrc
42+ run : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
43+
44+ - name : Create Release Pull Request or Publish to npm
45+ id : changesets
46+ uses : changesets/action@v1
47+ with :
48+ title : New release
49+ commit : New release
50+ version : pnpm run bump:stable
51+ publish : pnpm run release:stable:ci
52+ createGithubReleases : false
You can’t perform that action at this time.
0 commit comments