Publish types on npm #1
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 types on npm | |
on: workflow_dispatch | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
types: | |
name: Publish types on npm | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
run_install: false | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build moonlight | |
env: | |
NODE_ENV: production | |
run: pnpm run build | |
- name: Publish types | |
run: | | |
cd packages/types | |
pnpm publish --access public --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |