chore: continuous deployment #3
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
# | |
# Creates 0.0.0-$COMMIT versions for every package and publishes them to NPM | |
# | |
name: Publish preleases to NPM | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 10 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "23.x" | |
registry-url: "https://registry.npmjs.org" | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm -r build | |
- name: Write dev versions | |
run: node scripts/version-for-prerelease.ts | |
- name: Publish core | |
run: pnpm publish --no-git-checks --dry-run --tag dev | |
working-directory: packages/core | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish vite | |
run: pnpm publish --no-git-checks --dry-run --tag dev | |
working-directory: packages/vite | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish create-orange | |
run: pnpm publish --no-git-checks --dry-run --tag dev | |
working-directory: packages/create-orange | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |