Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

upgrade node locally #217

upgrade node locally

upgrade node locally #217

Workflow file for this run

name: Node CI
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn
- name: Test
run: make test
env:
CI: true
publish:
if: contains(github.ref, 'master')
name: Publish to NPM
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install
run: yarn
- name: Publish
run: make publish
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}