diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 09a134709e..5e053077f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,10 @@ jobs: id: get-info run: | if [[ "${{ github.ref_name }}" =~ "beta" ]]; then + echo "defaultTag=$(echo 'latest')" >> $GITHUB_OUTPUT echo "proRepos=$(echo '${{ vars.PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT else + echo "defaultTag=$(echo 'next')" >> $GITHUB_OUTPUT echo "proRepos=$(echo '${{ vars.NEXT_PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT fi - uses: actions/create-github-app-token@v1 @@ -72,7 +74,7 @@ jobs: yarn config set registry https://registry.npmjs.org/ yarn config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} npm whoami - yarn release:force --no-verify-access --no-git-reset --registry https://registry.npmjs.org/ + yarn release:force --no-verify-access --no-git-reset --registry https://registry.npmjs.org/ --dist-tag=${{ steps.get-info.outputs.defaultTag }} - name: Checkout pro-plugins uses: actions/checkout@v3 with: @@ -96,13 +98,13 @@ jobs: run: | git reset --hard npm config set //pkg.nocobase.com/:_authToken=${{ env.PKG_NOCOBASE_TOKEN }} - yarn release:force --no-verify-access --no-git-reset --registry https://pkg.nocobase.com + yarn release:force --no-verify-access --no-git-reset --registry https://pkg.nocobase.com --dist-tag=${{ steps.get-info.outputs.defaultTag }} - name: publish pkg-src.nocobase.com run: | git reset --hard bash generate-npmignore.sh ignore-src npm config set //pkg-src.nocobase.com/:_authToken=${{ env.PKG_SRC_NOCOBASE_TOKEN }} - yarn release:force --no-verify-access --no-git-reset --registry https://pkg-src.nocobase.com + yarn release:force --no-verify-access --no-git-reset --registry https://pkg-src.nocobase.com --dist-tag=${{ steps.get-info.outputs.defaultTag }} push-docker: runs-on: ubuntu-latest needs: publish-npm