Skip to content

Continuous deployment #299

Continuous deployment

Continuous deployment #299

Workflow file for this run

name: Continuous deployment
on:
schedule:
- cron: '0 0 * * 5,1' # Friday and Monday at midnight
jobs:
test-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16]
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
- run: npx pnpm i --frozen-lockfile=false
- run: npm run lint
- run: npm run test
- run: npm run build
deploy:
runs-on: ubuntu-latest
needs:
- test-deploy
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: 16
- run: npx pnpm i --frozen-lockfile=false
- run: npm run build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: 'public'