Skip to content

Commit 1226a6a

Browse files
committed
ci(workflows): update to the latest workflows
1 parent bace564 commit 1226a6a

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

.github/workflows/create-github-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ jobs:
99
create-github-release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/create-release@v1
12+
- name: Checkout source
13+
uses: actions/checkout@v2
14+
- name: Create GitHub release
15+
uses: actions/create-release@v1
1416
env:
1517
# This token is provided by Actions, you do not need to create your own token
1618
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/lint-source.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
name: lint-source
22

3-
on: push
3+
on: [push]
44

55
jobs:
66
lint-source:
77
runs-on: ubuntu-latest
8+
container:
9+
image: node:12-alpine
810
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v1
11-
with:
12-
node-version: 12
13-
registry-url: https://registry.npmjs.org
11+
- name: Checkout source
12+
uses: actions/checkout@v2
1413
- name: Install dependencies
1514
run: yarn
1615
- name: Check code style

.github/workflows/publish-npm.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ on:
88
jobs:
99
publish-npm:
1010
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [12]
1114
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v1
15+
- name: Checkout source
16+
uses: actions/checkout@v2
17+
- name: Setup Node.js ${{matrix.node-version}}
18+
uses: actions/setup-node@v1
1419
with:
15-
node-version: 12
20+
node-version: ${{matrix.node-version}}
1621
registry-url: https://registry.npmjs.org
1722
- name: Publish package
1823
run: yarn publish --access public

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,7 @@ lodash.templatesettings@^4.0.0:
17911791
dependencies:
17921792
lodash._reinterpolate "^3.0.0"
17931793

1794-
lodash@^4.17.14, lodash@^4.17.15, lodash@^4.2.1:
1794+
lodash@^4.17.14, lodash@^4.17.15:
17951795
version "4.17.19"
17961796
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
17971797
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==

0 commit comments

Comments
 (0)