Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit ff0b284

Browse files
authored
fix(ci): fix automatic release job (#388)
* fix(ci): fix automatic release job
1 parent 812aca2 commit ff0b284

2 files changed

Lines changed: 25 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -97,27 +97,3 @@ jobs:
9797
- name: Run tests
9898
run: |
9999
yarn test:ci
100-
release:
101-
name: Release
102-
needs: [npm, yarn]
103-
runs-on: ubuntu-18.04
104-
steps:
105-
- name: Checkout
106-
uses: actions/checkout@v2
107-
with:
108-
token: ${{ github.token }}
109-
- name: Setup Node.js
110-
uses: actions/setup-node@v1
111-
with:
112-
node-version: 12
113-
- name: Install with npm
114-
run: |
115-
npm install -q
116-
- name: Build
117-
run: |
118-
npm run build
119-
- name: Release
120-
env:
121-
GH_TOKEN: ${{ secrets.BOT_PAT }}
122-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
123-
run: npx semantic-release

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v1
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 12
17+
- name: Install dependencies
18+
run: npm ci
19+
- name: Build
20+
run: npm run build
21+
- name: Release
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
24+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25+
run: npx semantic-release

0 commit comments

Comments
 (0)