Skip to content

Commit

Permalink
ci: use node 16 and npm
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Mar 11, 2022
1 parent 2f77418 commit 15c62f0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: "14.x"
- run: yarn
- run: yarn lint
- run: yarn test
node-version: "16.x"
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm test
5 changes: 3 additions & 2 deletions .github/workflows/npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
scope: '@sigodenjs'
- run: yarn
- run: npm install
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn build && mkdir release && yarn pkg .
- run: npm install
- run: npm run build && mkdir release && yarn pkg .
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit 15c62f0

Please sign in to comment.