Skip to content

Commit

Permalink
ci(workflows): update lint-source & publish-npm
Browse files Browse the repository at this point in the history
  • Loading branch information
phatpham9 committed Feb 11, 2021
1 parent d8f2390 commit 881e4dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/lint-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ on: [push]

jobs:
lint-source:
strategy:
matrix:
node-version: [10, 12, 14, 15]
runs-on: ubuntu-latest
container:
image: node:12-alpine
container: boringcodes/dev-runner:node-${{matrix.node-version}}-alpine
name: With Node.js ${{matrix.node-version}}
steps:
- name: Checkout source
uses: actions/checkout@v2
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ on:
jobs:
publish-npm:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12]
container: boringcodes/dev-runner:node-15-alpine
name: With Node.js 15
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Setup Node.js ${{matrix.node-version}}
uses: actions/setup-node@v1
- name: Config registry
uses: actions/setup-node@v2
with:
node-version: ${{matrix.node-version}}
registry-url: https://registry.npmjs.org
- name: Publish package
run: yarn publish --access public
Expand Down

0 comments on commit 881e4dd

Please sign in to comment.