From 2d8a3fa3bb374c69e682817e6346d09801f09482 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 22 Nov 2021 16:17:00 +0100 Subject: [PATCH 01/29] Modify workflow for tests --- .github/workflows/publish.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5439886..54d2dd2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: NPM Package Publish +name: TEST on: push: @@ -10,7 +10,7 @@ on: types: [created] jobs: - build-test-publish: + test: name: Build, test and publish runs-on: ubuntu-latest steps: @@ -39,22 +39,9 @@ jobs: run: | git config user.name Heimdall git config user.email thesis-heimdall@users.noreply.github.com - - # On main merge or manual workflow dispatch publish a pre-release package. - # Automatically bump version based on the current version stored in package.json. - - name: Publish pre-release package - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' - run: yarn publish --non-interactive --prerelease --preid pre --message "Pre-release v%s [skip ci]" --tag "pre" - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - # On release creation publish a release package with the same version as - # the one stored in package.json. - - name: Publish release package - if: github.event_name == 'release' - run: yarn publish --non-interactive --message "Release v%s [skip ci]" --tag "latest" - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + echo "TEST" >> test.txt + git add test.txt + git commit -m "TEST" - name: Push git commit if: github.event_name != 'pull_request' From 38c183528cea43e71482f8d19ba01e64b9431d57 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 22 Nov 2021 16:18:25 +0100 Subject: [PATCH 02/29] Remove steps --- .github/workflows/publish.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 54d2dd2..26955b3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,15 +25,6 @@ jobs: registry-url: "https://registry.npmjs.org" scope: "@keep-network" - - name: Install dependencies - run: yarn install --frozen-lockfile - - - name: Build - run: yarn build - - - name: Test - run: yarn test - - name: Setup git credentials if: github.event_name != 'pull_request' run: | From 984e524e6cec27fccd3b7797fce2e2c457894ce7 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 22 Nov 2021 16:18:43 +0100 Subject: [PATCH 03/29] Remove ifs --- .github/workflows/publish.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 26955b3..f4b9283 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,6 @@ jobs: scope: "@keep-network" - name: Setup git credentials - if: github.event_name != 'pull_request' run: | git config user.name Heimdall git config user.email thesis-heimdall@users.noreply.github.com @@ -35,5 +34,4 @@ jobs: git commit -m "TEST" - name: Push git commit - if: github.event_name != 'pull_request' run: git push From 11a085b167e2a11dcde002003e1463d376c04179 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 22 Nov 2021 16:20:17 +0100 Subject: [PATCH 04/29] Add ref --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f4b9283..8e15839 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,6 +17,7 @@ jobs: - uses: actions/checkout@v2 with: token: ${{ secrets.CI_GITHUB_TOKEN }} + ref: ${{ github.event.pull_request.head.ref }} - uses: actions/setup-node@v2 with: From e68d009417b62d6ded5de89c49c382d94d03a01a Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:20:45 +0000 Subject: [PATCH 05/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test.txt diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..2a02d41 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +TEST From f1e08f94e49bb01de60de481973eef990116939b Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:21:06 +0000 Subject: [PATCH 06/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index 2a02d41..ac7d3b8 100644 --- a/test.txt +++ b/test.txt @@ -1 +1,2 @@ TEST +TEST From 5f9f68ea6e7d483f4e0d47e0266a96201a546792 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:21:31 +0000 Subject: [PATCH 07/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index ac7d3b8..64a0b46 100644 --- a/test.txt +++ b/test.txt @@ -1,2 +1,3 @@ TEST TEST +TEST From 52c591b51fb1956fa27166eae3f5c11ff19665ca Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:21:56 +0000 Subject: [PATCH 08/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index 64a0b46..3818c13 100644 --- a/test.txt +++ b/test.txt @@ -1,3 +1,4 @@ TEST TEST TEST +TEST From 579239a24820ca288eea08b1aca62a06e36af616 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:22:25 +0000 Subject: [PATCH 09/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index 3818c13..25e2dcf 100644 --- a/test.txt +++ b/test.txt @@ -2,3 +2,4 @@ TEST TEST TEST TEST +TEST From 28f2ca9d19380204508a8967c81646fa500fc851 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:22:49 +0000 Subject: [PATCH 10/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index 25e2dcf..b334c61 100644 --- a/test.txt +++ b/test.txt @@ -3,3 +3,4 @@ TEST TEST TEST TEST +TEST From c28b82a56a820a362b69c08c7bf075491f971b48 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:23:14 +0000 Subject: [PATCH 11/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index b334c61..a885021 100644 --- a/test.txt +++ b/test.txt @@ -4,3 +4,4 @@ TEST TEST TEST TEST +TEST From a60ea07bebc01a5a6a323e06e0b6c09eaf474a15 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 22 Nov 2021 16:23:42 +0100 Subject: [PATCH 12/29] test --- test.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test.txt diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +2 From dc5016b376b78c9703e810b79135773780c35814 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 22 Nov 2021 16:27:03 +0100 Subject: [PATCH 13/29] move push --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8e15839..8ddffe4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,6 +33,7 @@ jobs: echo "TEST" >> test.txt git add test.txt git commit -m "TEST" + git push - name: Push git commit run: git push From ca63204762dff0e92e2d16faf643f3286a8662ba Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:29:58 +0000 Subject: [PATCH 14/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index a885021..e15bb42 100644 --- a/test.txt +++ b/test.txt @@ -5,3 +5,4 @@ TEST TEST TEST TEST +TEST From b021dac9f084f91608e9a37f13978441c9370559 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:30:21 +0000 Subject: [PATCH 15/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index e15bb42..e2ca29e 100644 --- a/test.txt +++ b/test.txt @@ -6,3 +6,4 @@ TEST TEST TEST TEST +TEST From 6b7765a0e35c25fe343997b215b739b13c347684 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:37:39 +0000 Subject: [PATCH 16/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index e2ca29e..b49e1c1 100644 --- a/test.txt +++ b/test.txt @@ -7,3 +7,4 @@ TEST TEST TEST TEST +TEST From 293fe0a8ef0c0f02159fdbcb65fb4ea2ec90d14c Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:38:08 +0000 Subject: [PATCH 17/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index b49e1c1..c9b2a8d 100644 --- a/test.txt +++ b/test.txt @@ -8,3 +8,4 @@ TEST TEST TEST TEST +TEST From 00f716e29921fae034d9ae3e1fd70baa87a3f562 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:38:38 +0000 Subject: [PATCH 18/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index c9b2a8d..e82722d 100644 --- a/test.txt +++ b/test.txt @@ -9,3 +9,4 @@ TEST TEST TEST TEST +TEST From 03c1d742d99352dc3522074876738a4edefad651 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:39:01 +0000 Subject: [PATCH 19/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index e82722d..16c3a9c 100644 --- a/test.txt +++ b/test.txt @@ -10,3 +10,4 @@ TEST TEST TEST TEST +TEST From d65964c095b23c380b92a7b7060fe508516964cc Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:39:24 +0000 Subject: [PATCH 20/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index 16c3a9c..0e4e710 100644 --- a/test.txt +++ b/test.txt @@ -11,3 +11,4 @@ TEST TEST TEST TEST +TEST From b54d7dc0719a686034b4387d06f38dc2256c8492 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:39:47 +0000 Subject: [PATCH 21/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index 0e4e710..e3c93b2 100644 --- a/test.txt +++ b/test.txt @@ -12,3 +12,4 @@ TEST TEST TEST TEST +TEST From c6f22e45a36ef648d1a7a3b2a2635aa0879e62c5 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:40:15 +0000 Subject: [PATCH 22/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index e3c93b2..985b3d9 100644 --- a/test.txt +++ b/test.txt @@ -13,3 +13,4 @@ TEST TEST TEST TEST +TEST From fe629e649450e2ee0b5cc955cf0eaa27ab8e592c Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:40:43 +0000 Subject: [PATCH 23/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index 985b3d9..8cb5f8f 100644 --- a/test.txt +++ b/test.txt @@ -14,3 +14,4 @@ TEST TEST TEST TEST +TEST From 50a9aecd751764f0dbe5322b736b074417e1d84a Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:42:00 +0000 Subject: [PATCH 24/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index 8cb5f8f..8d937ce 100644 --- a/test.txt +++ b/test.txt @@ -15,3 +15,4 @@ TEST TEST TEST TEST +TEST From 8c5e193f318c3a3104548dd1622a5ab9e16843f8 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Mon, 22 Nov 2021 15:42:27 +0000 Subject: [PATCH 25/29] TEST --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index 8d937ce..a88c890 100644 --- a/test.txt +++ b/test.txt @@ -16,3 +16,4 @@ TEST TEST TEST TEST +TEST From 1b31dd8c3e606babbb378645dd5f68bf08a4d3e2 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 22 Nov 2021 16:40:11 +0100 Subject: [PATCH 26/29] User --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8ddffe4..b8ffcae 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: - name: Setup git credentials run: | - git config user.name Heimdall + git config user.name @thesis-heimdall git config user.email thesis-heimdall@users.noreply.github.com echo "TEST" >> test.txt git add test.txt From 8a5edae6f2a6194f9f2a145ec1fa35efdf750b4a Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 22 Nov 2021 16:42:33 +0100 Subject: [PATCH 27/29] One push --- .github/workflows/publish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b8ffcae..1bdfbfb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,7 +33,6 @@ jobs: echo "TEST" >> test.txt git add test.txt git commit -m "TEST" - git push - name: Push git commit run: git push From 9dc209b014e9aa0a192c6a17f473688489902c2b Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 22 Nov 2021 16:50:07 +0100 Subject: [PATCH 28/29] Update workflow name --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1bdfbfb..8814a85 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: TEST +name: NPM Package Publish on: push: @@ -32,7 +32,7 @@ jobs: git config user.email thesis-heimdall@users.noreply.github.com echo "TEST" >> test.txt git add test.txt - git commit -m "TEST" + git commit -m "TEST [skip ci]" - name: Push git commit run: git push From 61246dfbbc2e33c40d79ba746ba80ddc486efeb3 Mon Sep 17 00:00:00 2001 From: "@thesis-heimdall" Date: Mon, 22 Nov 2021 15:51:08 +0000 Subject: [PATCH 29/29] TEST [skip ci] --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index a88c890..7de8965 100644 --- a/test.txt +++ b/test.txt @@ -17,3 +17,4 @@ TEST TEST TEST TEST +TEST