Skip to content

Commit 8cfbf9a

Browse files
committed
ci: use latest version of semantic-release
1 parent 4f1f771 commit 8cfbf9a

File tree

2 files changed

+30
-31
lines changed

2 files changed

+30
-31
lines changed

.github/workflows/semantic-release.yaml

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,34 @@ env:
1010

1111
jobs:
1212
release:
13-
1413
runs-on: ubuntu-latest
15-
14+
1615
steps:
17-
- uses: actions/checkout@v1
18-
- uses: actions/setup-node@v1
19-
with:
20-
node-version: '12.x'
21-
- name: Install latest npm
22-
run: |
23-
sudo npm install -g npm@
24-
npm config set update-notifier false
25-
sudo chown -R $USER:$(id -gn $USER) /home/runner/.config
26-
- name: Authenticate with NPM
27-
run: |
28-
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc
29-
- name: Keep npm cache around to speed up installs
30-
uses: actions/cache@v1
31-
with:
32-
path: ~/.npm
33-
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
34-
restore-keys: |
35-
${{ runner.OS }}-build-${{ env.cache-name }}-
36-
${{ runner.OS }}-build-
37-
${{ runner.OS }}-
38-
- name: Install dependencies
39-
run: npm ci --no-audit
40-
- name: Semantic release
41-
continue-on-error: true
42-
run: |
43-
npm i --no-save semantic-release@next
44-
npx semantic-release
16+
- uses: actions/checkout@v1
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: "12.x"
20+
- name: Install latest npm
21+
run: |
22+
sudo npm install -g npm@
23+
npm config set update-notifier false
24+
sudo chown -R $USER:$(id -gn $USER) /home/runner/.config
25+
- name: Authenticate with NPM
26+
run: |
27+
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc
28+
- name: Keep npm cache around to speed up installs
29+
uses: actions/cache@v1
30+
with:
31+
path: ~/.npm
32+
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
33+
restore-keys: |
34+
${{ runner.OS }}-build-${{ env.cache-name }}-
35+
${{ runner.OS }}-build-
36+
${{ runner.OS }}-
37+
- name: Install dependencies
38+
run: npm ci --no-audit
39+
- name: Semantic release
40+
continue-on-error: true
41+
run: |
42+
npm i --no-save semantic-release
43+
npx semantic-release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"npm": ">=6.0.0"
5353
},
5454
"release": {
55-
"branch": "saga",
55+
"branches": ["saga"],
5656
"remoteTags": true
5757
},
5858
"publishConfig": {

0 commit comments

Comments
 (0)