Skip to content

Nightly Build

Nightly Build #52

name: Nightly Build
on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch:
jobs:
publishing-command:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: master
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18"
registry-url: "https://registry.npmjs.org/" # important for scoped packages
- name: Install dependencies
run: npm install
- name: Authenticate with npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish to NPM with nightly tag
run: npm run publish:nightly