|
6 | 6 | build: |
7 | 7 | runs-on: ubuntu-22.04 |
8 | 8 | steps: |
9 | | - - uses: actions/checkout@v4 |
10 | | - - name: Set Node.js 16.x |
11 | | - uses: actions/setup-node@v4 |
12 | | - with: |
13 | | - node-version: 16.x |
14 | | - - name: "Install" |
15 | | - run: | |
16 | | - npm install |
17 | | - - name: "Prettier" |
18 | | - run: | |
19 | | - npm run format-check |
20 | | - - name: "Lint" |
21 | | - run: | |
22 | | - npm run lint |
23 | | - - name: "Test" |
24 | | - run: | |
25 | | - npm run test |
26 | | - - name: "build" |
27 | | - run: | |
28 | | - npm run build |
29 | | - npm run package |
| 9 | + - uses: actions/checkout@v4 |
| 10 | + - name: Set Node.js 20.x |
| 11 | + uses: actions/setup-node@v4 |
| 12 | + with: |
| 13 | + node-version: 20.x |
| 14 | + - name: 'Install' |
| 15 | + run: | |
| 16 | + npm install |
| 17 | + - name: 'Prettier' |
| 18 | + run: | |
| 19 | + npm run format-check |
| 20 | + - name: 'Lint' |
| 21 | + run: | |
| 22 | + npm run lint |
| 23 | + - name: 'Test' |
| 24 | + run: | |
| 25 | + npm run test |
| 26 | + - name: 'build' |
| 27 | + run: | |
| 28 | + npm run build |
| 29 | + npm run package |
30 | 30 |
|
31 | 31 | test: |
32 | 32 | runs-on: ubuntu-22.04 |
33 | 33 | steps: |
34 | | - - uses: actions/checkout@v4 |
35 | | - - name: Set Node.js 16.x |
36 | | - uses: actions/setup-node@v4 |
37 | | - with: |
38 | | - node-version: 16.x |
39 | | - - name: "Build action for test" |
40 | | - run: | |
41 | | - npm install |
42 | | - npm run all |
43 | | - git clean -fXd |
44 | | - - name: Create Deployment |
45 | | - uses: ./ |
46 | | - with: |
47 | | - token: ${{ github.token }} |
48 | | - environment_name: ${{ github.job }} |
49 | | - skip_pre_action: true |
| 34 | + - uses: actions/checkout@v4 |
| 35 | + - name: Set Node.js 20.x |
| 36 | + uses: actions/setup-node@v4 |
| 37 | + with: |
| 38 | + node-version: 20.x |
| 39 | + - name: 'Build action for test' |
| 40 | + run: | |
| 41 | + npm install |
| 42 | + npm run all |
| 43 | + git clean -fXd |
| 44 | + - name: Create Deployment |
| 45 | + uses: ./ |
| 46 | + with: |
| 47 | + token: ${{ github.token }} |
| 48 | + environment_name: ${{ github.job }} |
| 49 | + skip_pre_action: true |
50 | 50 |
|
51 | 51 | release: |
52 | 52 | runs-on: ubuntu-22.04 |
53 | | - name: "Build and release action" |
| 53 | + name: 'Build and release action' |
54 | 54 | needs: [build, test] |
55 | 55 | steps: |
56 | 56 | - uses: actions/checkout@v4 |
|
63 | 63 | uses: smartlyio/github-actions@release-action-node-v1 |
64 | 64 | with: |
65 | 65 | dry_run: ${{ github.event_name == 'pull_request' }} |
66 | | - token: "${{ secrets.GITHUB_TOKEN }}" |
| 66 | + token: '${{ secrets.GITHUB_TOKEN }}' |
0 commit comments