From 90c464bf12a68c8186ab7a68f37e2d1072b67095 Mon Sep 17 00:00:00 2001 From: tokenshift Date: Thu, 17 Aug 2023 15:23:30 -0400 Subject: [PATCH 1/5] Create build.yaml Adding Github Actions build. --- .github/workflows/build.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..fb05777 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,30 @@ +# 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: npm run build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.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: npm install --omit dev + - run: npm run build From e32d77ecc0a30aa38bcf4e96bec432c8be22a5ee Mon Sep 17 00:00:00 2001 From: tokenshift Date: Thu, 17 Aug 2023 15:27:34 -0400 Subject: [PATCH 2/5] Update build.yaml --- .github/workflows/build.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fb05777..50e8165 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -26,5 +26,11 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm install --omit dev + - run: npm install - run: npm run build + - name: Upload build artifacts + uses: actions/upload-artifact@v3.1.2 + with: + name: styles.css + path: styles.css + retention-days: 14 From d4ded76da24c4996242f61c4fd666ef3708c85a8 Mon Sep 17 00:00:00 2001 From: tokenshift Date: Thu, 17 Aug 2023 15:31:12 -0400 Subject: [PATCH 3/5] Update build.yaml --- .github/workflows/build.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 50e8165..ef1449e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,14 +11,10 @@ on: jobs: build: - runs-on: ubuntu-latest - strategy: matrix: - node-version: [14.x, 16.x, 18.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - + node-version: [16.x, 18.x] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} From 6053a7c220480ac88ce4e448f3a1ecec279e0514 Mon Sep 17 00:00:00 2001 From: tokenshift Date: Thu, 17 Aug 2023 15:34:12 -0400 Subject: [PATCH 4/5] Update build.yaml --- .github/workflows/build.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ef1449e..672f5a5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -30,3 +30,10 @@ jobs: name: styles.css path: styles.css retention-days: 14 + - name: Upload build artifacts (2) + uses: actions/upload-artifact@v3.1.2 + with: + path: | + main.js + manifest.json + styles.css From 8a113315218ffde554d1a6ae6cdc6ee5cbbdfdc3 Mon Sep 17 00:00:00 2001 From: tokenshift Date: Thu, 17 Aug 2023 15:37:12 -0400 Subject: [PATCH 5/5] Update build.yaml --- .github/workflows/build.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 672f5a5..f83bc82 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x, 18.x] + node-version: [16.x] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -25,15 +25,10 @@ jobs: - run: npm install - run: npm run build - name: Upload build artifacts - uses: actions/upload-artifact@v3.1.2 - with: - name: styles.css - path: styles.css - retention-days: 14 - - name: Upload build artifacts (2) uses: actions/upload-artifact@v3.1.2 with: path: | main.js manifest.json styles.css + retention-days: 14