Skip to content

Fix Node Version Issue to 20 #25

Fix Node Version Issue to 20

Fix Node Version Issue to 20 #25

Workflow file for this run

name: CD
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20
- name: Install
run: yarn install
- name: Test
run: yarn test
- name: Lint
run: yarn lint
- name: Typescript build
run: yarn build
publish-npm:
if: github.event_name == 'push' # Push/merge only, not on PR
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20
- name: Install
run: yarn install
- name: Typescript build
run: yarn build
- name: Bump node version
run: yarn bump
- name: Publish to NPMJS
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: package.json
- name: Commit changes
uses: stefanzweifel/[email protected]
with:
commit_message: Bump version
commit_author: Skyhook Bot <[email protected]>
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}