Skip to content

Commit

Permalink
ci: temp disable dev publish
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Sep 3, 2024
1 parent 110ba3d commit 6ac48ac
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/handle-release-branch-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: npm run ${{ matrix.script.command }}

publish:
name: Publish
name: 'Publish: Release'
needs:
- verify
if: contains(fromJson('["refs/heads/alpha", "refs/heads/beta", "refs/heads/main"]'), github.ref)
Expand Down Expand Up @@ -72,33 +72,33 @@ jobs:
run: npm publish ./dist/*.tgz --tag ${{ (github.head_ref || github.ref_name) == 'main' && 'latest' || github.head_ref || github.ref_name }}
shell: bash

dev-publish:
name: 'Publish: Dev'
needs:
- verify
if: contains(fromJson('["refs/heads/alpha", "refs/heads/beta", "refs/heads/main"]'), github.ref) == 'false'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# dev-publish:
# name: 'Publish: Dev'
# needs:
# - verify
# if: contains(fromJson('["refs/heads/alpha", "refs/heads/beta", "refs/heads/main"]'), github.ref) == 'false'
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

- name: Setup project
uses: ./.github/actions/setup
# - name: Setup project
# uses: ./.github/actions/setup

- name: Build project
run: npm run build
shell: bash
# - name: Build project
# run: npm run build
# shell: bash

- name: Get current version
run: echo "PACKAGE_VERSION=$(npm pkg get version | tr -d '"')" >> $GITHUB_ENV
# - name: Get current version
# run: echo "PACKAGE_VERSION=$(npm pkg get version | tr -d '"')" >> $GITHUB_ENV

- name: Setup dev version
run: echo "BRANCH_VERSION=$PACKAGE_VERSION-$BRANCH_NAME.${GITHUB_SHA::7}" >> $GITHUB_ENV
# - name: Setup dev version
# run: echo "BRANCH_VERSION=$PACKAGE_VERSION-$BRANCH_NAME.${GITHUB_SHA::7}" >> $GITHUB_ENV

- name: Bump version
run: npm version $BRANCH_VERSION --no-git-tag-version --force
# - name: Bump version
# run: npm version $BRANCH_VERSION --no-git-tag-version --force

- name: Publish a dev release
run: npm publish --tag dev
# - name: Publish a dev release
# run: npm publish --tag dev

0 comments on commit 6ac48ac

Please sign in to comment.