chore: add workspace dep check shell #97
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: 'publish @waline/client' | |
on: | |
push: | |
branches: | |
- main | |
- fix/workspace-publish | |
paths: | |
- .github/workflows/release-client.yml | |
- packages/client/** | |
permissions: | |
contents: write | |
id-token: write | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: WorkSpace DepCheck | |
run: node scripts/workspace-publish.cjs @waline/client | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Publish NPM | |
uses: JS-DevTools/npm-publish@v3 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
package: ./packages/client |