From fc2fdcfe197b698ec9e91f0520d39d47e4f2453e Mon Sep 17 00:00:00 2001 From: Mohamed Elmoslemany Date: Wed, 27 Nov 2024 12:47:56 +0100 Subject: [PATCH 1/2] adding workflow to update dist branch --- .github/workflows/dist.yml | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/dist.yml diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml new file mode 100644 index 000000000..ac7107ed4 --- /dev/null +++ b/.github/workflows/dist.yml @@ -0,0 +1,44 @@ +name: Update dist + +on: workflow_dispatch + +env: + CI: true + +permissions: + contents: write + +jobs: + dist: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16] + steps: + - name: Check out chain4travel/caminojs + uses: actions/checkout@v4 + + - uses: actions/setup-node@v2 + with: + cache: yarn + node-version: ${{ matrix.node-version }} + - run: yarn install --frozen-lockfile + - run: yarn prettier-check + - run: yarn test + - run: yarn build + + - name: Check out dist caminojs + uses: actions/checkout@v4 + with: + ref: dist + path: caminojs-dist + + - run: | + rm -rf caminojs-dist/* + cp -ar dist documentation CHANGELOG.md LICENSE README.md package.json tsconfig.json webpack.config.js ./caminojs-dist/ + cd caminojs-dist + git config --global user.email "github@chain4travel.com" + git config --global user.name "Auto Push" + git add . + git diff --quiet && git diff --staged --quiet || git commit -m "Update dist" + git push origin dist \ No newline at end of file From d85a97c183a8ee327a660e5c4e8803e9b903a2bc Mon Sep 17 00:00:00 2001 From: Mohamed Elmoslemany Date: Wed, 27 Nov 2024 12:55:12 +0100 Subject: [PATCH 2/2] prettier --- .github/workflows/dist.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index ac7107ed4..2ceec3edc 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -41,4 +41,4 @@ jobs: git config --global user.name "Auto Push" git add . git diff --quiet && git diff --staged --quiet || git commit -m "Update dist" - git push origin dist \ No newline at end of file + git push origin dist