Merge branch 'main' into develop #109
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: '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}} |