Skip to content

Merge pull request #32 from lobehub/dependabot/npm_and_yarn/types/jso… #76

Merge pull request #32 from lobehub/dependabot/npm_and_yarn/types/jso…

Merge pull request #32 from lobehub/dependabot/npm_and_yarn/types/jso… #76

Workflow file for this run

name: Release CI
on:
push:
branches:
- master
- alpha
- beta
- rc
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install deps
run: pnpm install
- name: CI
run: pnpm run ci
- name: Test
run: pnpm run test
release:
needs: test
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install deps
run: pnpm install
- name: release
run: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}