Skip to content

test-and-release

test-and-release #459

Workflow file for this run

name: test-and-release
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
release:
name: test-and-release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: yarn
- name: Building
run: yarn build
- name: Testing
run: yarn test
- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm install -global semantic-release https://github.com/jayree/semantic-release/raw/master/oclif-semantic-release-v3.1.5.tgz
semantic-release -e @oclif/semantic-release