@adbayb/stack 0.0.0-next-9cabdc2 → 0.0.0-next-f3b94c9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/multi-projects/.github/workflows/continuous_delivery.yml +8 -1
- package/templates/multi-projects/.github/workflows/workflow.yml +3 -60
- package/templates/single-project/.github/workflows/continuous_delivery.yml +8 -1
- package/templates/single-project/.github/workflows/workflow.yml +3 -60
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { writeFile, chmod, mkdir, symlink } from 'node:fs/promises';
|
|
|
6
6
|
import { existsSync, cpSync, readFileSync, renameSync, writeFileSync, readdirSync } from 'node:fs';
|
|
7
7
|
import { fdir } from 'fdir';
|
|
8
8
|
|
|
9
|
-
var version = "0.0.0-next-
|
|
9
|
+
var version = "0.0.0-next-f3b94c9";
|
|
10
10
|
|
|
11
11
|
const VERSION = version;
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -42,11 +42,18 @@ jobs:
|
|
|
42
42
|
run: |
|
|
43
43
|
pnpm --filter=\!@examples/\* --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}"
|
|
44
44
|
pnpm --filter=\!@examples/\* --recursive exec pnpm publish --tag next --no-git-checks
|
|
45
|
-
- name:
|
|
45
|
+
- name: Create release pull request
|
|
46
|
+
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
|
|
46
47
|
uses: changesets/action@v1
|
|
47
48
|
with:
|
|
48
49
|
commit: "chore: release package(s)"
|
|
49
50
|
title: "chore: release package(s)"
|
|
51
|
+
env:
|
|
52
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
53
|
+
- name: Publish stable version(s)
|
|
54
|
+
if: "contains(github.event.head_commit.message, 'chore: release package(s)')"
|
|
55
|
+
uses: changesets/action@v1
|
|
56
|
+
with:
|
|
50
57
|
version: pnpm release:version
|
|
51
58
|
publish: pnpm release:publish
|
|
52
59
|
env:
|
|
@@ -4,9 +4,8 @@ on:
|
|
|
4
4
|
workflow_call:
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
|
-
|
|
7
|
+
main:
|
|
8
8
|
timeout-minutes: 5
|
|
9
|
-
name: Install
|
|
10
9
|
runs-on: ubuntu-latest
|
|
11
10
|
steps:
|
|
12
11
|
- name: Checkout the code
|
|
@@ -32,65 +31,9 @@ jobs:
|
|
|
32
31
|
${{ runner.os }}-cache-
|
|
33
32
|
- name: Install dependencies
|
|
34
33
|
run: pnpm install --frozen-lockfile
|
|
35
|
-
build:
|
|
36
|
-
timeout-minutes: 5
|
|
37
|
-
needs: install
|
|
38
|
-
name: Build
|
|
39
|
-
runs-on: ubuntu-latest
|
|
40
|
-
steps:
|
|
41
|
-
- name: Checkout code
|
|
42
|
-
uses: actions/checkout@v4
|
|
43
|
-
- uses: pnpm/action-setup@v4
|
|
44
|
-
- name: Get node version
|
|
45
|
-
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
46
|
-
id: node
|
|
47
|
-
- name: Setup node ${{ steps.node.outputs.version }}
|
|
48
|
-
uses: actions/setup-node@v4
|
|
49
|
-
with:
|
|
50
|
-
node-version: ${{ steps.node.outputs.version }}
|
|
51
|
-
cache: pnpm
|
|
52
|
-
- name: Setup cache
|
|
53
|
-
id: cache
|
|
54
|
-
uses: actions/cache@v4
|
|
55
|
-
with:
|
|
56
|
-
path: |
|
|
57
|
-
./node_modules
|
|
58
|
-
./turbo
|
|
59
|
-
key: ${{ runner.os }}-cache-${{ github.sha }}
|
|
60
|
-
restore-keys: |
|
|
61
|
-
${{ runner.os }}-cache-
|
|
62
|
-
- name: Install dependencies
|
|
63
|
-
run: pnpm install --frozen-lockfile
|
|
64
34
|
- name: Build
|
|
65
35
|
run: pnpm build
|
|
66
|
-
check:
|
|
67
|
-
timeout-minutes: 5
|
|
68
|
-
needs: build
|
|
69
|
-
name: Check
|
|
70
|
-
runs-on: ubuntu-latest
|
|
71
|
-
steps:
|
|
72
|
-
- name: Checkout the code
|
|
73
|
-
uses: actions/checkout@v4
|
|
74
|
-
- uses: pnpm/action-setup@v4
|
|
75
|
-
- name: Get node version
|
|
76
|
-
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
77
|
-
id: node
|
|
78
|
-
- name: Setup node ${{ steps.node.outputs.version }}
|
|
79
|
-
uses: actions/setup-node@v4
|
|
80
|
-
with:
|
|
81
|
-
node-version: ${{ steps.node.outputs.version }}
|
|
82
|
-
cache: pnpm
|
|
83
|
-
- name: Setup cache
|
|
84
|
-
id: cache
|
|
85
|
-
uses: actions/cache@v4
|
|
86
|
-
with:
|
|
87
|
-
path: |
|
|
88
|
-
./node_modules
|
|
89
|
-
./turbo
|
|
90
|
-
key: ${{ runner.os }}-cache-${{ github.sha }}
|
|
91
|
-
restore-keys: |
|
|
92
|
-
${{ runner.os }}-cache-
|
|
93
|
-
- name: Install dependencies
|
|
94
|
-
run: pnpm install --frozen-lockfile
|
|
95
36
|
- name: Check (static analysis including linters, types, and commit message)
|
|
96
37
|
run: pnpm check
|
|
38
|
+
- name: Test
|
|
39
|
+
run: pnpm test
|
|
@@ -42,11 +42,18 @@ jobs:
|
|
|
42
42
|
run: |
|
|
43
43
|
pnpm --filter=\!@examples/\* --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}"
|
|
44
44
|
pnpm --filter=\!@examples/\* --recursive exec pnpm publish --tag next --no-git-checks
|
|
45
|
-
- name:
|
|
45
|
+
- name: Create release pull request
|
|
46
|
+
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
|
|
46
47
|
uses: changesets/action@v1
|
|
47
48
|
with:
|
|
48
49
|
commit: "chore: release package(s)"
|
|
49
50
|
title: "chore: release package(s)"
|
|
51
|
+
env:
|
|
52
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
53
|
+
- name: Publish stable version(s)
|
|
54
|
+
if: "contains(github.event.head_commit.message, 'chore: release package(s)')"
|
|
55
|
+
uses: changesets/action@v1
|
|
56
|
+
with:
|
|
50
57
|
version: pnpm release:version
|
|
51
58
|
publish: pnpm release:publish
|
|
52
59
|
env:
|
|
@@ -4,9 +4,8 @@ on:
|
|
|
4
4
|
workflow_call:
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
|
-
|
|
7
|
+
main:
|
|
8
8
|
timeout-minutes: 5
|
|
9
|
-
name: Install
|
|
10
9
|
runs-on: ubuntu-latest
|
|
11
10
|
steps:
|
|
12
11
|
- name: Checkout the code
|
|
@@ -32,65 +31,9 @@ jobs:
|
|
|
32
31
|
${{ runner.os }}-cache-
|
|
33
32
|
- name: Install dependencies
|
|
34
33
|
run: pnpm install --frozen-lockfile
|
|
35
|
-
build:
|
|
36
|
-
timeout-minutes: 5
|
|
37
|
-
needs: install
|
|
38
|
-
name: Build
|
|
39
|
-
runs-on: ubuntu-latest
|
|
40
|
-
steps:
|
|
41
|
-
- name: Checkout code
|
|
42
|
-
uses: actions/checkout@v4
|
|
43
|
-
- uses: pnpm/action-setup@v4
|
|
44
|
-
- name: Get node version
|
|
45
|
-
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
46
|
-
id: node
|
|
47
|
-
- name: Setup node ${{ steps.node.outputs.version }}
|
|
48
|
-
uses: actions/setup-node@v4
|
|
49
|
-
with:
|
|
50
|
-
node-version: ${{ steps.node.outputs.version }}
|
|
51
|
-
cache: pnpm
|
|
52
|
-
- name: Setup cache
|
|
53
|
-
id: cache
|
|
54
|
-
uses: actions/cache@v4
|
|
55
|
-
with:
|
|
56
|
-
path: |
|
|
57
|
-
./node_modules
|
|
58
|
-
./turbo
|
|
59
|
-
key: ${{ runner.os }}-cache-${{ github.sha }}
|
|
60
|
-
restore-keys: |
|
|
61
|
-
${{ runner.os }}-cache-
|
|
62
|
-
- name: Install dependencies
|
|
63
|
-
run: pnpm install --frozen-lockfile
|
|
64
34
|
- name: Build
|
|
65
35
|
run: pnpm build
|
|
66
|
-
check:
|
|
67
|
-
timeout-minutes: 5
|
|
68
|
-
needs: build
|
|
69
|
-
name: Check
|
|
70
|
-
runs-on: ubuntu-latest
|
|
71
|
-
steps:
|
|
72
|
-
- name: Checkout the code
|
|
73
|
-
uses: actions/checkout@v4
|
|
74
|
-
- uses: pnpm/action-setup@v4
|
|
75
|
-
- name: Get node version
|
|
76
|
-
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
77
|
-
id: node
|
|
78
|
-
- name: Setup node ${{ steps.node.outputs.version }}
|
|
79
|
-
uses: actions/setup-node@v4
|
|
80
|
-
with:
|
|
81
|
-
node-version: ${{ steps.node.outputs.version }}
|
|
82
|
-
cache: pnpm
|
|
83
|
-
- name: Setup cache
|
|
84
|
-
id: cache
|
|
85
|
-
uses: actions/cache@v4
|
|
86
|
-
with:
|
|
87
|
-
path: |
|
|
88
|
-
./node_modules
|
|
89
|
-
./turbo
|
|
90
|
-
key: ${{ runner.os }}-cache-${{ github.sha }}
|
|
91
|
-
restore-keys: |
|
|
92
|
-
${{ runner.os }}-cache-
|
|
93
|
-
- name: Install dependencies
|
|
94
|
-
run: pnpm install --frozen-lockfile
|
|
95
36
|
- name: Check (static analysis including linters, types, and commit message)
|
|
96
37
|
run: pnpm check
|
|
38
|
+
- name: Test
|
|
39
|
+
run: pnpm test
|