Skip to content

Commit

Permalink
Add plugins (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlansley committed Jul 8, 2024
1 parent 9894e03 commit 1b492ce
Show file tree
Hide file tree
Showing 7 changed files with 904 additions and 45 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-published-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Check Published
on:
workflow_dispatch:
schedule:
- cron: "30 20 * * *"
- cron: '30 20 * * *'

jobs:
checkPublished:
runs-on: ubuntu-latest
name: Check Published
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -19,5 +19,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }}
DEBUG: "*"
DEBUG: '*'
SLACK_PUBLISH_MISMATCH: ${{ secrets.SLACK_PUBLISH_MISMATCH }}
42 changes: 28 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
branches:
- "main"
- 'main'

env:
CI: true
Expand All @@ -14,43 +14,57 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
node-version: ['20.x', '22.x']
steps:
- uses: actions/checkout@v4
- name: Checkout Code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
cache: 'npm'
- name: Install Dependencies
run: npm ci --ignore-scripts
- name: Audit Signatures
run: npm audit signatures
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Prepare
run: npm run prepare
- name: Compile
run: npm run ci:compile
- name: Check Code Style
run: npm run ci:style
- name: Perform Linting
run: npm run ci:lint
- name: Run Tests
run: npm run ci:test

branchBuild:
runs-on: ubuntu-latest
name: Branch Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
node-version: ['20.x', '22.x']
steps:
- uses: actions/checkout@v4
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
cache: 'npm'
- name: Install Dependencies
run: npm ci --ignore-scripts
- name: Audit Signatures
run: npm audit signatures
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Prepare
run: npm run prepare
- name: Compile
run: npm run ci:compile
- name: Check Code Style
run: npm run ci:style
- name: Perform Linting
run: npm run ci:lint
- name: Run Tests
run: npm run ci:test
6 changes: 3 additions & 3 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish Beta Package
on:
pull_request:
branches:
- "main"
- 'main'

jobs:
publishBeta:
Expand All @@ -17,8 +17,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Check Label
uses: checkdigit/github-actions/check-label@main
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install latest npm
run: npm install -g npm@latest
- name: Install Dependencies
Expand Down
8 changes: 7 additions & 1 deletion index.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"singleQuote": true,
"printWidth": 120
"printWidth": 120,
"plugins": [
"prettier-plugin-packagejson",
"@prettier/plugin-xml",
"prettier-plugin-svelte",
"prettier-plugin-tailwindcss"
]
}
Loading

0 comments on commit 1b492ce

Please sign in to comment.