.github/workflows/release.yml
---
name: Release
'on':
schedule:
- cron: 0 13 * * 1
jobs:
# https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions
release:
name: Release
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4.2.1
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4.0.4
with:
node-version-file: .nvmrc
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npx semantic-release