[optimize] upgrade to MobX-RESTful 2 & other latest Upstream packages #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI & CD | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
Build-and-Publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org | |
cache: pnpm | |
- name: Install Dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Build & Publish | |
run: | | |
echo GITHUB_PAT=${{ secrets.PAT }} > .env | |
npm publish --access public --provenance | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Update document | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
publish_dir: ./docs | |
personal_token: ${{ secrets.GITHUB_TOKEN }} | |
force_orphan: true |