Skip to content

Commit

Permalink
fix actions with Node.js 16
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jan 24, 2022
1 parent bed144c commit 17c715f
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ jobs:
name: Build
strategy:
matrix:
os: [ubuntu-latest]
node: [13]
os:
- ubuntu-latest
node-version:
- 16

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: package.json

- name: Install Dependencies
run: npm install
Expand All @@ -30,9 +34,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 13
node-version: 16
cache: npm
cache-dependency-path: package.json

- run: npm install
- run: ./scripts/generate-version.sh
- run: ./scripts/npm-pack-testing.sh
Expand All @@ -44,10 +51,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 13
node-version: 16
registry-url: https://registry.npmjs.org/
cache: npm
cache-dependency-path: package.json
- run: npm install
- run: ./scripts/generate-version.sh
- run: ./scripts/package-publish-config-tag.sh
Expand Down

0 comments on commit 17c715f

Please sign in to comment.