forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.34 KB
/
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
name: Release
on:
push:
tags:
# Push events to matching v*, i.e. v1.0, v20.15.10
- 'v*'
# Ignore tags for v10, there is a separate v10-release.yml workflow for v10
- '!v10*'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Build project
run: yarn build
- name: Run Continuous Integration checks
run: yarn ci-check
- name: Publish packages under the `next` dist tag
run:
yarn lerna publish from-package --dist-tag next --no-verify-access
--yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Release
id: create_release
uses: actions/github-script@v6
with:
script: |
github.rest.repos.createRelease({
tag_name: context.ref,
name: context.ref,
draft: false,
prerelease: true,
owner: context.repo.owner,
repo: context.repo.repo,
});