mirror of https://github.com/apache/superset.git
build: configure publish workflow
This commit is contained in:
parent
a45efd7cb8
commit
f230f3b89f
|
@ -2,8 +2,8 @@ name: Publish package
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches:
|
||||||
- 'trigger-patch-test.*'
|
- 'master'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -18,12 +18,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: 'master'
|
|
||||||
# pulls all commits (needed for lerna / semantic release to correctly version)
|
# pulls all commits (needed for lerna / semantic release to correctly version)
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Get tags and filter trigger tags
|
- name: Get tags and filter trigger tags
|
||||||
run: |
|
run: |
|
||||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||||
|
git fetch --prune --unshallow
|
||||||
git tag -d `git tag | grep -E '^trigger-'`
|
git tag -d `git tag | grep -E '^trigger-'`
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
@ -54,10 +54,10 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
# - name: Build packages
|
- name: Build packages
|
||||||
# run: yarn build
|
run: yarn build
|
||||||
# - name: Run unit tests
|
- name: Run unit tests
|
||||||
# run: yarn test
|
run: yarn test
|
||||||
|
|
||||||
- name: List changed packages
|
- name: List changed packages
|
||||||
run: yarn list-changed-packages
|
run: yarn list-changed-packages
|
||||||
|
@ -76,9 +76,13 @@ jobs:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# - name: Bump version and publish package(s)
|
- name: Bump version and publish package(s)
|
||||||
# run: |
|
run: |
|
||||||
# yarn ci:create-patch-version
|
git update-index --assume-unchanged .npmrc
|
||||||
# yarn ci:release-from-tag
|
git tag -d `git tag | grep -E '^trigger-'`
|
||||||
# env:
|
yarn ci:create-patch-version
|
||||||
# GH_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
|
yarn ci:release-from-tag
|
||||||
|
env:
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GH_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
|
|
@ -31,8 +31,8 @@
|
||||||
"postrelease": "lerna run deploy-demo",
|
"postrelease": "lerna run deploy-demo",
|
||||||
"list-changed-packages": "lerna changed",
|
"list-changed-packages": "lerna changed",
|
||||||
"manual-release": "lerna publish --force-publish && yarn postrelease",
|
"manual-release": "lerna publish --force-publish && yarn postrelease",
|
||||||
"ci:create-patch-version": "lerna version patch --create-release github --yes",
|
"ci:create-patch-version": "lerna version patch --yes",
|
||||||
"ci:create-minor-version": "lerna version minor --create-release github --yes",
|
"ci:create-minor-version": "lerna version minor --yes",
|
||||||
"ci:create-conventional-version": "lerna version --conventional-commits --create-release github --yes",
|
"ci:create-conventional-version": "lerna version --conventional-commits --create-release github --yes",
|
||||||
"ci:release-from-tag": "lerna publish from-package --yes",
|
"ci:release-from-tag": "lerna publish from-package --yes",
|
||||||
"ci:release-conventional": "lerna publish --conventional-commits --create-release github --yes"
|
"ci:release-conventional": "lerna publish --conventional-commits --create-release github --yes"
|
||||||
|
|
Loading…
Reference in New Issue