Skip to content

feat: Preview by publishing to subdomain only aka staging (#4143) #2535

feat: Preview by publishing to subdomain only aka staging (#4143)

feat: Preview by publishing to subdomain only aka staging (#4143) #2535

Workflow file for this run

name: Publish packages on NPM 📦
on:
push:
branches:
- main
jobs:
publish:
timeout-minutes: 20
runs-on: ubuntu-latest
env:
DATABASE_URL: postgres://
AUTH_SECRET: test
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/ci-setup
- run: pnpm -r build
- run: pnpm -r dts
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm -r publish --access public