Skip to content

Commit

Permalink
ci: add build upload-artifacts step
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsorensenf5 committed Jun 5, 2024
1 parent 8db02ca commit b8645d2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

Expand All @@ -21,3 +21,9 @@ jobs:

- name: Build
run: npm run build

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
3 changes: 2 additions & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: wagoid/commitlint-github-action@v4
with:
configFile: .commitlintrc.yml
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "The ultimate oppressive style guide.",
"scripts": {
"build": "rm -rf dist && tsc -p ./tsconfig.build.json",
"lint": "tsc -p ./tsconfig.build.json && eslint src/**",
"test": "tsc -p ./tsconfig.build.json && npm run --prefix=example-project lint",
"lint": "eslint src/**",
"test": "npm run --prefix=example-project lint",
"prepare": "husky install",
"semantic-release": "semantic-release"
},
Expand Down

0 comments on commit b8645d2

Please sign in to comment.