Skip to content

fixup! Chore(ci): Publish on specified branches only #1412

fixup! Chore(ci): Publish on specified branches only

fixup! Chore(ci): Publish on specified branches only #1412

Workflow file for this run

name: Publish
on:
push:
branches:
- chore/DS-1434-prerelease
- main
- release/next
- release/alpha
- release/beta
jobs:
publish:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
name: Publish package
runs-on: ubuntu-24.04
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Configure Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn --immutable --inline-builds
- name: Build
run: yarn build
# - name: Authenticate npm
# run: ./bin/ci/npm-auth.sh
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Publish
# run: make publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}