From 097e99eba7c1982ac0207a844f5585a6277c8b1f Mon Sep 17 00:00:00 2001 From: Ron de las Alas Date: Thu, 28 Sep 2023 12:36:12 -0400 Subject: [PATCH 1/6] ci: update repo location to scratchfoundation --- renovate.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json5 b/renovate.json5 index 5615b31..4d8b5b3 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -2,6 +2,6 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "github>LLK/scratch-renovate-config:conservative" + "github>scratchfoundation/scratch-renovate-config:conservative" ] } From a88349a9a118dec1c7d9f7306937d1561940aa31 Mon Sep 17 00:00:00 2001 From: Ron de las Alas Date: Thu, 28 Sep 2023 12:48:43 -0400 Subject: [PATCH 2/6] ci: remove circleci file --- .circleci/config.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 681f4a9..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,32 +0,0 @@ -version: 2.1 -orbs: - commitlint: conventional-changelog/commitlint@1.0.0 - node: circleci/node@5.0.3 -alias: - - &defaults - docker: - - image: cimg/node:18.12.1 - executor: node/default -jobs: - main-job: - <<: *defaults - steps: - - checkout - - node/install-packages - - run: npm test - - run: npx --no -- semantic-release -workflows: - version: 2 - commitlint: - jobs: - - commitlint/lint: - target-branch: master - filters: - branches: - ignore: - - master - main-workflow: - jobs: - - main-job: - context: - - scratch-npm-creds From 85602586e490e3e851162dcfef58a8941984d6fa Mon Sep 17 00:00:00 2001 From: Ron de las Alas Date: Thu, 28 Sep 2023 12:49:45 -0400 Subject: [PATCH 3/6] ci: update package.json metadeata --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 57fa48b..8cfc95a 100644 --- a/package.json +++ b/package.json @@ -12,14 +12,14 @@ }, "repository": { "type": "git", - "url": "https://github.com/LLK/eslint-config-scratch.git" + "url": "https://github.com/scratchfoundation/eslint-config-scratch.git" }, "author": "Massachusetts Institute of Technology", "license": "BSD-3-Clause", "bugs": { - "url": "https://github.com/LLK/eslint-config-scratch/issues" + "url": "https://github.com/scratchfoundation/eslint-config-scratch/issues" }, - "homepage": "https://github.com/LLK/eslint-config-scratch#readme", + "homepage": "https://github.com/scratchfoundation/eslint-config-scratch#readme", "keywords": [ "eslint", "eslintconfig", From 70fa0e3f55fb6f31ee14e9a446f9fafe3cf4ec4f Mon Sep 17 00:00:00 2001 From: Ron de las Alas Date: Thu, 28 Sep 2023 12:50:25 -0400 Subject: [PATCH 4/6] ci: intial pass at actions config --- .github/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..173bd8d --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Build eslint-config-scratch + +on: + push: + branches: + - master +jobs: + build-eslint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: wagoid/commitlint-github-action@v5 + - name: Use Node.js 18 + uses: actions/setup-node@v1 + with: + node-version: 18.x + - name: Install Dependencies + run: npm install + - name: Test + run: Semantic Release + - name: Build + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npx --no -- semantic-release + From 3c921f2e7c466a9fe5134adb9c814c61c1778df9 Mon Sep 17 00:00:00 2001 From: Ron de las Alas Date: Thu, 28 Sep 2023 12:50:55 -0400 Subject: [PATCH 5/6] ci: add codeowners file --- .github/CODEOWNERS.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/CODEOWNERS.md diff --git a/.github/CODEOWNERS.md b/.github/CODEOWNERS.md new file mode 100644 index 0000000..a905f98 --- /dev/null +++ b/.github/CODEOWNERS.md @@ -0,0 +1 @@ +@scratchfoundation/scratch-engineering From e83aa95ab33555e979473bd2dd1455f7bd402d37 Mon Sep 17 00:00:00 2001 From: Ron de las Alas Date: Thu, 28 Sep 2023 14:25:20 -0400 Subject: [PATCH 6/6] ci: add permissions and run semantic release on master --- .github/workflows/deploy.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 173bd8d..bb2f8d3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,9 +1,12 @@ name: Build eslint-config-scratch on: - push: - branches: - - master + push: +permissions: + contents: write # publish a GitHub release + pages: write # deploy to GitHub Pages + issues: write # comment on released issues + pull-requests: write # comment on released pull requests jobs: build-eslint: runs-on: ubuntu-latest @@ -17,8 +20,9 @@ jobs: - name: Install Dependencies run: npm install - name: Test - run: Semantic Release - - name: Build + run: npm test + - name: Semantic Release + if: github.ref == 'refs/heads/master' && github.event_name == 'push' env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}