chore(deps-dev): bump vite from 6.3.5 to 6.3.6 in the npm_and_yarn group across 1 directory #204
This file contains hidden or 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 (preview) | |
on: | |
push: | |
branches: | |
- dev | |
paths: | |
- ./packages/* | |
tags: | |
- "!**" | |
pull_request: | |
branches: [dev] | |
jobs: | |
preview: | |
runs-on: ubuntu-latest | |
if: github.repository == 'mcansh/packages' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v5 | |
- name: 🟧 Get pnpm version | |
id: pnpm-version | |
shell: bash | |
run: | | |
# get pnpm version from package.json packageManager field | |
VERSION=$(node -e "console.log(require('./package.json').packageManager.replace(/pnpm@/, ''))") | |
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".node-version" | |
- name: 🟧 Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ steps.pnpm-version.outputs.VERSION }} | |
run_install: | | |
- recursive: true | |
args: [--frozen-lockfile, --strict-peer-dependencies] | |
cwd: ./ | |
- name: 🔐 Setup npm auth | |
run: | | |
echo "registry=https://registry.npmjs.org" >> ~/.npmrc | |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc | |
- name: 🟧 Set publish-branch to current branch | |
run: | | |
echo "publish-branch=$(git branch --show-current)" >> ~/.npmrc | |
- name: 🏗️ Build | |
run: pnpm run build | |
- name: 🚀 Publish PR | |
run: pnpx pkg-pr-new publish --pnpm './packages/*' --template './apps/url/*' --template './apps/http-helmet/*' |