From dc919ba8ef5992dc24b0b2bbfc7fd116cc330b25 Mon Sep 17 00:00:00 2001 From: Trezy Date: Fri, 12 Jul 2024 12:42:22 -0500 Subject: [PATCH] ci: remove dev publishing in favor of `alpha` branch --- .github/workflows/publish-branch.yml | 38 ---------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/publish-branch.yml diff --git a/.github/workflows/publish-branch.yml b/.github/workflows/publish-branch.yml deleted file mode 100644 index 60a18147..00000000 --- a/.github/workflows/publish-branch.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Publish Branch - -on: - push: - branches: - - main - - dev - -jobs: - release_candidate: - runs-on: ubuntu-latest - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - - - name: Setup Project - uses: ./.github/actions/setup - - - name: Build Project - run: npm run build - - - name: Get current package.json version - run: echo "PACKAGE_VERSION=$(npm pkg get version | tr -d '"')" >> $GITHUB_ENV - - # get the sort SHA and add it into the environment variables - - name: Setup Branch Release Candidate 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: Publish a new branch release candidate version - run: npm publish --tag $BRANCH_NAME