Skip to content

.github/workflows/release.yml #11

.github/workflows/release.yml

.github/workflows/release.yml #11

Workflow file for this run

on:
schedule:
- cron: '0 0 2 * *'
jobs:
publish:
if: github.event.label.name == 'publish πŸ“¦'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.2
with:
version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install --no-frozen-lockfile
- run: pnpm build
- run: pnpm lint
- run: pnpm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}