Expose modules/exports as public #2
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: Release builds to npm | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
release: | |
name: Release builds to 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 | |
registry-url: https://registry.npmjs.org | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
env: | |
NODE_ENV: production | |
run: pnpm run build | |
- name: Publish to npm | |
run: pnpm publish --access public --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |