Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic CI #4

Merged
merged 3 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: monthly
open-pull-requests-limit: 10
ignore:
- dependency-name: '*'
update-types: ['version-update:semver-patch', 'version-update:semver-minor']
- dependency-name: '@types/*'
update-types: ['version-update:semver-patch', 'version-update:semver-minor', 'version-update:semver-major']
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: main
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Need all tags to get a version number in-between tags
- uses: actions/setup-node@v4
with:
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: yarn build
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"live-reload": "node ./node_modules/live-server/live-server.js docs",
"sass-watch-lib": "sass --watch src/_main.scss docs/natural-layout.css",
"sass-watch-docs": "sass --watch docs/docs.scss docs/docs.css",
"build": "rm -rf dist; sass src/_main.scss dist/natural-layout.css; cp -r src/ dist/scss; cp package.json dist; cd dist; yarn set-version",
"build": "rm -rf dist && sass src/_main.scss dist/natural-layout.css && cp -r src/ dist/scss && cp package.json dist && cd dist && yarn set-version && cd ../ && sass docs/docs.scss docs/docs.css",
"set-version": "yarn version --no-git-tag-version --new-version `git describe --tags --always`",
"release": "yarn build; cd dist; yarn publish --access public"
"release": "yarn build && cd dist && yarn publish --access public"
},
"devDependencies": {
"live-server": "^1.2.2",
Expand Down