tachybase_todo/.github/workflows/release.yml

77 lines
2.3 KiB
YAML
Raw Normal View History

name: Release
chore(versions): 😊 publish v0.7.6-alpha.2 (#954) # Conflicts: # docker/app-mysql/docker-compose.yml # docker/app-postgres/docker-compose.yml # docker/app-sqlite/docker-compose.yml # docs/en-US/release-notes.md # docs/zh-CN/release-notes.md # lerna.json # packages/app/client/package.json # packages/app/server/package.json # packages/core/acl/package.json # packages/core/actions/package.json # packages/core/build/package.json # packages/core/cache/package.json # packages/core/cli/package.json # packages/core/client/package.json # packages/core/create-nocobase-app/package.json # packages/core/database/package.json # packages/core/devtools/package.json # packages/core/dumi-theme-nocobase/package.json # packages/core/resourcer/package.json # packages/core/sdk/package.json # packages/core/server/package.json # packages/core/test/package.json # packages/core/utils/package.json # packages/plugins/acl/package.json # packages/plugins/audit-logs/package.json # packages/plugins/china-region/package.json # packages/plugins/client/package.json # packages/plugins/collection-manager/package.json # packages/plugins/error-handler/package.json # packages/plugins/export/package.json # packages/plugins/file-manager/package.json # packages/plugins/multi-app-manager/package.json # packages/plugins/notifications/package.json # packages/plugins/system-settings/package.json # packages/plugins/ui-routes-storage/package.json # packages/plugins/ui-schema-storage/package.json # packages/plugins/users/package.json # packages/plugins/verification/package.json # packages/plugins/workflow/package.json # packages/presets/nocobase/package.json
2022-10-24 16:56:27 +08:00
on:
push:
tags:
- 'v*'
jobs:
publish-npm:
runs-on: ubuntu-latest
container: node:18
chore(versions): 😊 publish v0.7.6-alpha.2 (#954) # Conflicts: # docker/app-mysql/docker-compose.yml # docker/app-postgres/docker-compose.yml # docker/app-sqlite/docker-compose.yml # docs/en-US/release-notes.md # docs/zh-CN/release-notes.md # lerna.json # packages/app/client/package.json # packages/app/server/package.json # packages/core/acl/package.json # packages/core/actions/package.json # packages/core/build/package.json # packages/core/cache/package.json # packages/core/cli/package.json # packages/core/client/package.json # packages/core/create-nocobase-app/package.json # packages/core/database/package.json # packages/core/devtools/package.json # packages/core/dumi-theme-nocobase/package.json # packages/core/resourcer/package.json # packages/core/sdk/package.json # packages/core/server/package.json # packages/core/test/package.json # packages/core/utils/package.json # packages/plugins/acl/package.json # packages/plugins/audit-logs/package.json # packages/plugins/china-region/package.json # packages/plugins/client/package.json # packages/plugins/collection-manager/package.json # packages/plugins/error-handler/package.json # packages/plugins/export/package.json # packages/plugins/file-manager/package.json # packages/plugins/multi-app-manager/package.json # packages/plugins/notifications/package.json # packages/plugins/system-settings/package.json # packages/plugins/ui-routes-storage/package.json # packages/plugins/ui-schema-storage/package.json # packages/plugins/users/package.json # packages/plugins/verification/package.json # packages/plugins/workflow/package.json # packages/presets/nocobase/package.json
2022-10-24 16:56:27 +08:00
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: yarn install and build
run: |
yarn config set registry https://registry.npmjs.org/
yarn install
yarn build
-
name: publish npmjs.org
run: |
git config --global user.email "test@mail.com"
git config --global user.name "test"
git config --global --add safe.directory /__w/nocobase/nocobase
2022-10-31 23:55:11 +08:00
echo "# test" >> Release.md
2022-11-01 00:00:15 +08:00
git add .
2022-10-26 12:27:19 +08:00
git commit -m "chore(versions): test publish packages xxx"
npm config set access public
npm config set registry https://registry.npmjs.org/
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
yarn config set access public
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/
chore(versions): 😊 publish v0.7.6-alpha.2 (#954) # Conflicts: # docker/app-mysql/docker-compose.yml # docker/app-postgres/docker-compose.yml # docker/app-sqlite/docker-compose.yml # docs/en-US/release-notes.md # docs/zh-CN/release-notes.md # lerna.json # packages/app/client/package.json # packages/app/server/package.json # packages/core/acl/package.json # packages/core/actions/package.json # packages/core/build/package.json # packages/core/cache/package.json # packages/core/cli/package.json # packages/core/client/package.json # packages/core/create-nocobase-app/package.json # packages/core/database/package.json # packages/core/devtools/package.json # packages/core/dumi-theme-nocobase/package.json # packages/core/resourcer/package.json # packages/core/sdk/package.json # packages/core/server/package.json # packages/core/test/package.json # packages/core/utils/package.json # packages/plugins/acl/package.json # packages/plugins/audit-logs/package.json # packages/plugins/china-region/package.json # packages/plugins/client/package.json # packages/plugins/collection-manager/package.json # packages/plugins/error-handler/package.json # packages/plugins/export/package.json # packages/plugins/file-manager/package.json # packages/plugins/multi-app-manager/package.json # packages/plugins/notifications/package.json # packages/plugins/system-settings/package.json # packages/plugins/ui-routes-storage/package.json # packages/plugins/ui-schema-storage/package.json # packages/plugins/users/package.json # packages/plugins/verification/package.json # packages/plugins/workflow/package.json # packages/presets/nocobase/package.json
2022-10-24 16:56:27 +08:00
push-docker:
runs-on: ubuntu-latest
needs: publish-npm
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
nocobase/nocobase
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: ./docker/nocobase
platforms: linux/amd64,linux/arm64
push: true
tags: nocobase/nocobase:latest,${{ steps.meta.outputs.tags }}