-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.27 KB
/
Release.yml
File metadata and controls
39 lines (37 loc) · 1.27 KB
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
name: 'Ramadevsign Design System Release Workflow'
on:
# No auto run
workflow_dispatch:
permissions:
contents: write # for checkout and tag
pull-requests: write # for comments
packages: write # for publish
jobs:
test-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.OUR_SECRET_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: lts/*
- name: Install packages
run: yarn
- name: Build packages in order
run: yarn workspace @ramadevsign-ds/foundation build && yarn workspace @ramadevsign-ds/react-fe build
- name: Run our tests
run: yarn workspace @ramadevsign-ds/react-fe test
- name: Bumb versions and publish with changesets
run: |
# Bump versions
yarn changeset version
# Publish to npm (not configured in our case)
# Need to change slightly, as there is a known issue with workspace:^ versioning
# Issue: https://github.com/changesets/changesets/issues/432
# yarn changeset publish
git status
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
YOUR_REGISTRY_TOKEN: ${{ secrets.YOUR_REGISTRY_TOKEN }}