Skip to content

Upgrade to Node v20 #254

Upgrade to Node v20

Upgrade to Node v20 #254

Workflow file for this run

name: Build
on:
push
jobs:
build:
name: 'Lint, Build, & Test'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '20.x'
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm test
- uses: actions/upload-artifact@v2
with:
name: dist
path: dist/
release:
name: 'Release'
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org/'
- uses: actions/download-artifact@v1
with:
name: dist
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}