From fb53deff1d7ed1cbbb5e57923b9bbd5fc6d354b7 Mon Sep 17 00:00:00 2001 From: Donovan Hutchence Date: Fri, 28 Jun 2024 10:36:05 +0100 Subject: [PATCH] update alpha publish --- .github/workflows/publish.yaml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a32b41b7a72..394586c9e78 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -12,7 +12,7 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 - + - name: Set up Node.js 18.x uses: actions/setup-node@v4 with: @@ -20,15 +20,6 @@ jobs: cache: 'npm' registry-url: 'https://registry.npmjs.org/' - - name: Install Dependencies - run: npm install - - - name: Build PlayCanvas - run: npm run build - - - name: Run Publint - run: npm run publint - - name: Determine pre-release tag id: release-tag run: | @@ -36,10 +27,20 @@ jobs: echo "Detected tag: $TAG_NAME" if [[ "$TAG_NAME" == *-alpha.* ]]; then echo "tag=alpha" >> $GITHUB_ENV + npm version --no-git-tag-version $TAG_NAME else echo "tag=latest" >> $GITHUB_ENV fi - + + - name: Install Dependencies + run: npm install + + - name: Build PlayCanvas + run: npm run build + + - name: Run Publint + run: npm run publint + - name: Publish to npm run: npm publish --tag ${{ env.tag }} env: