-
Notifications
You must be signed in to change notification settings - Fork 375
44 lines (42 loc) · 1.34 KB
/
release.yml
File metadata and controls
44 lines (42 loc) · 1.34 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
40
41
42
43
44
name: Release
on:
push:
branches:
- main
jobs:
publish-release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v2
with:
# pulls all commits (needed for semantic release to correctly version)
fetch-depth: '0'
# pulls all tags (needed for semantic release to correctly version)
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Prepare git
run: |
git config --global user.name 'stream-ci-bot'
git config --global user.email 'stream-bot@getstream.io'
- name: Install && Build - SDK and Sample App
uses: ./.github/actions/install-and-build-sdk
- name: Lint
run: yarn lerna-workspaces run lint
- name: Publish Release
run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Merge back changes
run: |
git stash
git checkout develop
git pull origin develop
git merge main -m "chore: merge back release [skip ci]"
git push origin develop