Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
devops things
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Jan 31, 2024
1 parent 499f4cf commit 6780707
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 10 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ temp
cache
dist
_site

!.vitepress
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Bump Version

on:
release:
types:
- published

jobs:
deploy:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
strategy:
matrix:
os:
- ubuntu-22.04
node-version:
- '18'
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v3
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
cache: npm
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile

# Let's do tests rq just to make sure we dont push something that is fundamentally broken
- name: Lint code
run: npm run lint
- name: Run unit tests
run: npm run test:unit

# Prepare release.
- name: Prepare release
uses: lando/prepare-release-action@v3
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ lando.env
coverage/

# docs
build
dist
_docs3
.temp
.cache
_site
Expand All @@ -42,5 +39,5 @@ cache
temp
config.*.timestamp-*-*.*

# yarn
# YARN
yarn.lock
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.github
.nyc_output
coverage
docs
examples
guides
Expand Down
15 changes: 15 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@
[headers.values]
Cache-Control = "public, max-age=31536000"

# pluginz
# https://github.com/netlify/netlify-plugin-lighthouse#readme
[[plugins]]
package = "@netlify/plugin-lighthouse"
[plugins.inputs.audits]
output_path = "reports/lighthouse.html"

# https://github.com/munter/netlify-plugin-checklinks#readme
[[plugins]]
package = "netlify-plugin-checklinks"
[plugins.inputs]
todoPatterns = [ "load" ]
skipPatterns = [ ".rss", ".gif", ".jpg", 'x.com', 'twitter.com' ]
checkExternal = true

# REDIRECTS
# NOTE THAT REDIRECTS ARE EXECUTED FIRST COME FIRST SERVE
# Domain redirects
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.16.0",
"@lando/vitepress-theme-default-plus": "^1.0.0-beta.20",
"@lando/vitepress-theme-default-plus": "^1.0.0-beta.21",
"babel-eslint": "^10.1.0",
"eslint": "^7.32.0",
"eslint-config-google": "^0.9.1",
Expand Down

0 comments on commit 6780707

Please sign in to comment.