File tree Expand file tree Collapse file tree 3 files changed +13
-18
lines changed Expand file tree Collapse file tree 3 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 8
8
- completed
9
9
10
10
jobs :
11
- cancel-self-run :
12
- name : " Cancel the self workflow run"
11
+ fail :
12
+ name : " Fail the workflow run by exiting "
13
13
if : ${{ github.event_name != 'workflow_dispatch' && github.event.workflow_run.conclusion != 'success' }}
14
14
runs-on : ubuntu-20.04
15
15
steps :
16
- - name : " Cancel the self workflow run"
17
- uses : potiuk/cancel-workflow-runs@master
18
- with :
19
- cancelMode : self
20
- token : ${{ secrets.BOT_GH_TOKEN }}
21
- notifyPRCancel : false
16
+ - name : " exit 1"
17
+ run : exit 1
22
18
23
19
publish :
24
20
runs-on : ubuntu-20.04
Original file line number Diff line number Diff line change 8
8
- completed
9
9
10
10
jobs :
11
- cancel-self-run :
12
- name : " Cancel the self workflow run"
11
+ fail :
12
+ name : " Fail the workflow run by exiting "
13
13
if : ${{ github.event_name != 'workflow_dispatch' && github.event.workflow_run.conclusion != 'success' }}
14
14
runs-on : ubuntu-20.04
15
15
steps :
16
- - name : " Cancel the self workflow run"
17
- uses : potiuk/cancel-workflow-runs@master
18
- with :
19
- cancelMode : self
20
- token : ${{ secrets.BOT_GH_TOKEN }}
21
- notifyPRCancel : false
16
+ - name : " exit 1"
17
+ run : exit 1
22
18
23
19
test :
24
20
strategy :
Original file line number Diff line number Diff line change 47
47
# Base on nightly branch versions
48
48
git merge --squash nightly
49
49
# Omit nighly release CHANGELOG changes
50
- git checkout HEAD packages/*/CHANGELOG.md
50
+ git restore --source master packages/*/CHANGELOG.md
51
+ git add .
52
+ # Test build to reduce chance of failure after creating a GH Release
53
+ yarn build
51
54
# Publish
52
55
yarn publish:release --sign-git-commit --loglevel silly
53
56
# Merge package.json/yarn.lock/CHANGELOG back to nightly
58
61
YARN_ENABLE_IMMUTABLE_INSTALLS : false
59
62
NODE_AUTH_TOKEN : ${{ secrets.NPM_REGISTRY_TOKEN }}
60
63
# Used for making a release
61
- GH_TOKEN : ${{ github.token }}
64
+ GH_TOKEN : ${{ secrets.BOT_GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments