Skip to content

Commit

Permalink
chore: shared library
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeychikk committed Jan 18, 2024
1 parent edf084a commit cdfb481
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 3 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Build

on:
push:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: cd ./tft-roller-client
- run: npm ci
- run: npm run build
- name: Push build
run: |
cd ../
git config --global user.name 'Github Actions'
git config --global user.email '[email protected]'
git switch -c build
git add -f ./tft-roller-client/docs
git commit --no-edit -m 'Build'
git push --force --set-upstream origin build
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "tft-roller-server"]
path = tft-roller-server
url = https://github.com/alexeychikk/tft-roller-server.git
[submodule "tft-roller-shared"]
path = tft-roller-shared
url = https://github.com/alexeychikk/tft-roller-shared.git
2 changes: 1 addition & 1 deletion tft-roller-server
1 change: 1 addition & 0 deletions tft-roller-shared
Submodule tft-roller-shared added at 9fd058
6 changes: 5 additions & 1 deletion tft-roller.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
{
"path": "tft-roller-server"
},
{
"path": "tft-roller-shared"
},
{
"path": "."
}
],
"settings": {
"files.exclude": {
"tft-roller-client": true,
"tft-roller-server": true
"tft-roller-server": true,
"tft-roller-shared": true
}
}
}

0 comments on commit cdfb481

Please sign in to comment.