Skip to content

dev(GitPods): Use latest node image #37

dev(GitPods): Use latest node image

dev(GitPods): Use latest node image #37

Workflow file for this run

name: NPM Publish
on:
push:
branches:
- master
jobs:
Test:
name: Tests
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
node: ['13.9', '13.10', '13.11', '14.x']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Run Tests
run: npm run test
Publish:
name: NPM Publish
runs-on: ubuntu-latest
needs: [Test]
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: 'KJDev-Bots'
GIT_COMMITTER_NAME: 'KJDev-Bots'
GIT_AUTHOR_EMAIL: '[email protected]'
GIT_COMMITTER_EMAIL: '[email protected]'
run: npx semantic-release