-
-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4615902
commit 90dc7f0
Showing
4 changed files
with
76 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Build/prepare | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- develop | ||
|
||
concurrency: ci-${{ github.workflow }} | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- name: Checkout git repo | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_TOKEN_SEMANTIC_RELEASE }} | ||
|
||
- name: apt-get install | ||
if: matrix.os == 'ubuntu-latest' | ||
run: sudo apt update -y && sudo apt-get install -y snapd rpm snapcraft fakeroot dpkg | ||
|
||
- name: Install Node and Yarn | ||
uses: actions/setup-node@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
node-version: 18.11.0 | ||
cache: 'yarn' | ||
|
||
- name: Install deps | ||
run: yarn install | ||
|
||
- name: Install global lerna | ||
run: yarn global add lerna | ||
|
||
- name: Test | ||
run: yarn run test | ||
|
||
- name: Semantic Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: yarn semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters