Skip to content

Merge pull request #42 from devtrice/feat/central #106

Merge pull request #42 from devtrice/feat/central

Merge pull request #42 from devtrice/feat/central #106

Workflow file for this run

name: 'Publish Alpha Version'
on:
push:
branches:
- develop
jobs:
publish:
name: πŸš€ Publishing to NPM
runs-on: ubuntu-latest
strategy:
matrix:
package: [core, vue, react, solid, svelte, vanilla]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Set variables
run: |
echo "COMMIT_ID=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "VERSION=$(npm view ./packages/${{ matrix.package }} version)" >> $GITHUB_ENV
- name: Build packages
run: |
pnpm install --no-frozen-lockfile
pnpm build
- name: Publish packages
run: |
pnpm --filter "@qr-x/${{ matrix.package }}" --filter "[origin/develop]" exec pnpm version ${{ env.VERSION }}-alpha.${{ env.COMMIT_ID }}
pnpm --filter "@qr-x/${{ matrix.package }}" --filter "[origin/develop]" publish --tag alpha --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}