Merge pull request #141 from scratchfoundation/rd/move-eslint-config-to-gha

Move eslint-config-scratch to GithubActions
This commit is contained in:
Ron de las Alas 2023-09-28 15:03:07 -04:00 committed by GitHub
commit 93a13c49ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 36 deletions

View file

@ -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

1
.github/CODEOWNERS.md vendored Normal file
View file

@ -0,0 +1 @@
@scratchfoundation/scratch-engineering

30
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Build eslint-config-scratch
on:
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
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: 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 }}
run: npx --no -- semantic-release

View file

@ -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",

View file

@ -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"
]
}