-
Notifications
You must be signed in to change notification settings - Fork 10
65 lines (52 loc) · 1.78 KB
/
release-test.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
name: Release test
on:
push:
branches:
- releaste-test
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build icons
run: npm run build:icons
# - name: Run unit tests
# run: npm run check
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Version and tag packages
run: npx lerna version --conventional-commits --no-changelog --yes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Configure npm authentication
# run: |
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
# - name: Publish packages to npm
# run: npx lerna publish from-package --yes
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }},
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Push changes back to the repo
# run: |
# git push origin --follow-tags
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Create merge-back PR to main
# uses: peter-evans/create-pull-request@v5
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# commit-message: "Release - version update"
# branch: releaste-test
# base: main
# title: 'Release - version update'
# body: 'This is an automated PR to merge the release branch into main after version bump and publish.'