-
Notifications
You must be signed in to change notification settings - Fork 40
67 lines (54 loc) Β· 1.81 KB
/
beta-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Beta Release
on:
workflow_dispatch:
jobs:
build_and_release:
name: Build and release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # fetch full history, so changelog can be generated
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: yarn install --immutable
- run: yarn run build
- run: yarn run lint
- run: yarn run test
- run: yarn run test-types
- name: git config
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Create release
id: create_release
run: |
yarn run release --prerelease beta
echo ::set-output name=tag_name::$(git describe HEAD --abbrev=0)
- name: copy README and LICENSE to packages
run: |
cp README.md packages/aws-sdk-client-mock/README.md
cp LICENSE packages/aws-sdk-client-mock/
cp LICENSE packages/aws-sdk-client-mock-jest/
- name: run e2e tests
run: |
yarn run verdaccio &
yarn run local-publish
yarn run test-e2e
- run: yarn run publish --tag beta
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tags: true
- name: Generate Release body
run: npx extract-changelog-release > RELEASE_BODY.md
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.create_release.outputs.tag_name }}
body_path: RELEASE_BODY.md
prerelease: true