|
1 | | -name: Release |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - branches: [ alpha, beta ] |
6 | | - |
7 | | -jobs: |
8 | | - release: |
9 | | - runs-on: ubuntu-latest |
10 | | - strategy: |
11 | | - matrix: |
12 | | - node: [ '20' ] |
13 | | - name: Release with Node version ${{ matrix.node }} |
14 | | - steps: |
15 | | - - name: Checkout CLI |
16 | | - uses: actions/checkout@v4 |
17 | | - with: |
18 | | - repository: apimatic/apimatic-cli |
19 | | - token: ${{ secrets.GITHUB_TOKEN }} |
20 | | - persist-credentials: false |
21 | | - fetch-depth: 0 |
22 | | - path: cli |
23 | | - |
24 | | - - name: setup node |
25 | | - uses: actions/setup-node@v4 |
26 | | - |
27 | | - - name: Install dependencies |
28 | | - working-directory: cli |
29 | | - run: | |
30 | | - npm install |
31 | | - npm install --save-dev @semantic-release/changelog @semantic-release/git |
32 | | - - name: Check Build |
33 | | - working-directory: 'cli' |
34 | | - run: npm run build |
35 | | - |
36 | | - - name: Release |
37 | | - working-directory: cli |
38 | | - env: |
39 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
40 | | - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
41 | | - run: npx semantic-release |
| 1 | +name: Release |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ alpha, beta ] |
| 6 | + |
| 7 | +jobs: |
| 8 | + release: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + strategy: |
| 11 | + matrix: |
| 12 | + node: [ '20' ] |
| 13 | + name: Release with Node version ${{ matrix.node }} |
| 14 | + steps: |
| 15 | + - name: Checkout CLI |
| 16 | + uses: actions/checkout@v4 |
| 17 | + with: |
| 18 | + repository: apimatic/apimatic-cli |
| 19 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 20 | + persist-credentials: false |
| 21 | + fetch-depth: 0 |
| 22 | + path: cli |
| 23 | + |
| 24 | + - name: setup node |
| 25 | + uses: actions/setup-node@v4 |
| 26 | + with: |
| 27 | + node-version: ${{ matrix.node }} |
| 28 | + |
| 29 | + - name: Install dependencies |
| 30 | + working-directory: cli |
| 31 | + run: npm install |
| 32 | + - name: Check Build |
| 33 | + working-directory: 'cli' |
| 34 | + run: npm run build |
| 35 | + |
| 36 | + - name: Release |
| 37 | + working-directory: cli |
| 38 | + env: |
| 39 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 40 | + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
| 41 | + run: npm exec semantic-release |
0 commit comments