File tree Expand file tree Collapse file tree 3 files changed +43
-42
lines changed Expand file tree Collapse file tree 3 files changed +43
-42
lines changed Original file line number Diff line number Diff line change @@ -117,13 +117,13 @@ async function main() {
117117 } ) ;
118118
119119 await createPackageJson ( answers ) ;
120- await command ( `git add package.json` ) ;
121- await command ( `git commit -m 'build(package): initial version'` ) ;
122-
123120 console . log ( "Install dependencies" ) ;
124121 await command (
125122 "npm install --save-dev @pika/pack @pika/plugin-build-node @pika/plugin-build-web @pika/plugin-ts-standard-pkg @types/jest @types/node jest prettier semantic-release semantic-release-plugin-update-version-in-files ts-jest typescript"
126123 ) ;
124+
125+ await command ( `git add package.json` ) ;
126+ await command ( `git commit -m 'build(package): initial version'` ) ;
127127 await command ( `git add package-lock.json` ) ;
128128 await command ( `git commit -m 'build(package): lock file'` ) ;
129129
@@ -174,7 +174,8 @@ describe("Smoke test", () => {
174174 it("is a function", () => {
175175 expect(${ answers . exportName } ).toBeInstanceOf(Function);
176176 });
177- });`
177+ });
178+ `
178179 ) ;
179180
180181 await command ( `git add test` ) ;
Original file line number Diff line number Diff line change @@ -7,25 +7,25 @@ async function createReleaseAction() {
77 ".github/workflows/release.yml" ,
88 `name: Release
99on:
10- push:
11- branches:
12- - master
10+ push:
11+ branches:
12+ - master
1313
1414jobs:
15- release:
16- name: release
17- runs-on: ubuntu-latest
18- steps:
19- - uses: actions/checkout@master
20- - uses: actions/setup-node@v1
21- with:
22- node-version: "12.x"
23- - run: npm ci
24- - run: npm run build
25- - run: npx semantic-release
26- env:
27- GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }}
28- NPM_TOKEN: \${{ secrets.NPM_TOKEN }}
15+ release:
16+ name: release
17+ runs-on: ubuntu-latest
18+ steps:
19+ - uses: actions/checkout@master
20+ - uses: actions/setup-node@v1
21+ with:
22+ node-version: "12.x"
23+ - run: npm ci
24+ - run: npm run build
25+ - run: npx semantic-release
26+ env:
27+ GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }}
28+ NPM_TOKEN: \${{ secrets.NPM_TOKEN }}
2929`
3030 ) ;
3131}
Original file line number Diff line number Diff line change @@ -7,30 +7,30 @@ async function createTestAction() {
77 ".github/workflows/test.yml" ,
88 `name: Test
99on:
10- push:
11- branches:
12- - master
13- - "greenkeeper/*"
14- pull_request:
15- types: [opened, synchronize]
10+ push:
11+ branches:
12+ - master
13+ - "greenkeeper/*"
14+ pull_request:
15+ types: [opened, synchronize]
1616
1717jobs:
18- test:
19- runs-on: ubuntu-latest
20- strategy:
21- matrix:
22- node_version: ['8', '10', '12']
18+ test:
19+ runs-on: ubuntu-latest
20+ strategy:
21+ matrix:
22+ node_version: ['8', '10', '12']
2323
24- steps:
25- - uses: actions/checkout@master
26- - name: Use Node.js \${{ matrix.node_version }}
27- uses: actions/setup-node@v1
28- with:
29- node-version: \${{ matrix.node_version }}
30- - name: Install
31- run: npm ci
32- - name: Test
33- run: npm test
24+ steps:
25+ - uses: actions/checkout@master
26+ - name: Use Node.js \${{ matrix.node_version }}
27+ uses: actions/setup-node@v1
28+ with:
29+ node-version: \${{ matrix.node_version }}
30+ - name: Install
31+ run: npm ci
32+ - name: Test
33+ run: npm test
3434`
3535 ) ;
3636}
You can’t perform that action at this time.
0 commit comments