Skip to content

Add vitest

Add vitest #1

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: publish to npm
on:
push:
branches:
- master
- workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run test
- run: npm run build
- run: 'npm publish --access public || :'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: actions/setup-node@v1
with:
registry-url: 'https://npm.pkg.github.com'
scope: '@japan-d2'
- run: 'npm publish || :'
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}