Skip to content

Commit 2eb959a

Browse files
committed
fix(release): add lock file to gitignore restore check_build workflow
1 parent e9edf09 commit 2eb959a

File tree

5 files changed

+78
-15439
lines changed

5 files changed

+78
-15439
lines changed

.github/workflows/check_build.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99
branches: [ v3 ]
1010
pull_request:
1111
branches: [ v3 ]
12-
create:
13-
tags: [ v3 ]
1412
# Allows you to run this workflow manually from the Actions tab
1513
workflow_dispatch:
1614

@@ -43,9 +41,4 @@ jobs:
4341
4442
- name: Check Build
4543
working-directory: 'cli'
46-
run: npm run build
47-
48-
- name: Publish to npm
49-
- uses: JS-DevTools/npm-publish@v1
50-
with:
51-
token: ${{ secrets.NPM_TOKEN }}
44+
run: npm run build

.github/workflows/release.yml

+33-22
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,41 @@ name: Release
22

33
on:
44
push:
5-
branches: [alpha]
5+
branches: [ alpha ]
66

77
jobs:
88
release:
9-
name: Release
109
runs-on: ubuntu-latest
11-
10+
strategy:
11+
matrix:
12+
node: [ '12', '13', '14' ]
13+
name: Release with Node version ${{ matrix.node }}
1214
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
- name: Setup Node.js
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: 12.x
19-
- name: Replace Git URL from SSH to https
20-
run: git config --global url."https://${{ secrets.ACCESS }}@github.com/".insteadOf ssh://git@github.com/
21-
- name: Install dependencies
22-
run: npx ci
23-
- name: Install semantic-release extra plugins
24-
run: npm install -D @semantic-release/changelog @semantic-release/git
25-
- name: Build
26-
run: npm run build
27-
- name: Release
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31-
run: npx semantic-release
15+
- name: Checkout CLI
16+
uses: actions/checkout@v2
17+
with:
18+
repository: apimatic/apimatic-cli
19+
token: ${{ secrets.ACCESS_TOKEN }}
20+
persist-credentials: false
21+
fetch-depth: 0
22+
path: cli
23+
24+
- name: setup node
25+
uses: actions/setup-node@v2
26+
27+
- name: Install dependencies
28+
working-directory: cli
29+
run: |
30+
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf https://github.com/
31+
npm install
32+
npm install --save-dev @semantic-release/changelog @semantic-release/git
33+
- name: Check Build
34+
working-directory: 'cli'
35+
run: npm run build
36+
37+
- name: Release
38+
working-directory: cli
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
run: npx semantic-release

0 commit comments

Comments
 (0)