mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix(ci): release.yml
This commit is contained in:
parent
60d44538f0
commit
49cba46c56
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -19,8 +19,10 @@ jobs:
|
|||||||
id: get-info
|
id: get-info
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.ref_name }}" =~ "beta" ]]; then
|
if [[ "${{ github.ref_name }}" =~ "beta" ]]; then
|
||||||
|
echo "defaultTag=$(echo 'latest')" >> $GITHUB_OUTPUT
|
||||||
echo "proRepos=$(echo '${{ vars.PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT
|
echo "proRepos=$(echo '${{ vars.PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
|
echo "defaultTag=$(echo 'next')" >> $GITHUB_OUTPUT
|
||||||
echo "proRepos=$(echo '${{ vars.NEXT_PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT
|
echo "proRepos=$(echo '${{ vars.NEXT_PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
- uses: actions/create-github-app-token@v1
|
- uses: actions/create-github-app-token@v1
|
||||||
@ -72,7 +74,7 @@ jobs:
|
|||||||
yarn config set registry https://registry.npmjs.org/
|
yarn config set registry https://registry.npmjs.org/
|
||||||
yarn config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
|
yarn config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
|
||||||
npm whoami
|
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
|
- name: Checkout pro-plugins
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@ -96,13 +98,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git reset --hard
|
git reset --hard
|
||||||
npm config set //pkg.nocobase.com/:_authToken=${{ env.PKG_NOCOBASE_TOKEN }}
|
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
|
- name: publish pkg-src.nocobase.com
|
||||||
run: |
|
run: |
|
||||||
git reset --hard
|
git reset --hard
|
||||||
bash generate-npmignore.sh ignore-src
|
bash generate-npmignore.sh ignore-src
|
||||||
npm config set //pkg-src.nocobase.com/:_authToken=${{ env.PKG_SRC_NOCOBASE_TOKEN }}
|
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:
|
push-docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: publish-npm
|
needs: publish-npm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user