-
Notifications
You must be signed in to change notification settings - Fork 254
44 lines (37 loc) · 1.12 KB
/
version-packages.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
name: version packages
on:
push:
branches:
- new-prod-release-workflow
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: main
depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: yarn
- name: Checkout branch
run: |
git checkout -b release-test
git push origin release-test
- name: Install Dependencies
run: yarn install --frozen-lockfile --ignore-optional
- name: Build
run: NODE_ENV=production yarn build
- name: Version packages
run: yarn lerna version minor --allow-branch release-test --force-publish=@segment/action-destinations --no-private --yes
- name: Create PR
run: |
gh pr create --base main --head release-test --fill --draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}