Skip to content

Commit

Permalink
fix: foo
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Jan 8, 2023
1 parent f45543a commit aade087
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 20 deletions.
1 change: 1 addition & 0 deletions .baserc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "@dword-design/node",
"seeAlso": [
{ "repository": "output-files", "description": "Output a tree of files and directories by providing an object. Especially useful for testing with real files." },
{ "repository": "with-local-tmp-dir", "description": "Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing." },
Expand Down
57 changes: 44 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
jobs:
build:
cancel-existing:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: rokroskar/[email protected]
release:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
ref: ${{ github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.head.ref || '' }}
Expand All @@ -18,28 +21,56 @@ jobs:
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "GitHub Actions"
- run: yarn --frozen-lockfile
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn test
- if: failure()
uses: actions/upload-artifact@v3
with:
name: Image Snapshot Diffs
path: "**/__image_snapshots__/__diff_output__"
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- run: yarn checkUnknownFiles
- run: yarn lint
- env:
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Push changed files
run: yarn dw-ci push-changed-files
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
if: github.ref == 'refs/heads/master'
name: Release
run: yarn semantic-release
test:
needs: cancel-existing
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: yarn --frozen-lockfile
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn test
- if: failure()
uses: actions/upload-artifact@v3
with:
name: Image Snapshot Diffs
path: "**/__image_snapshots__/__diff_output__"
- if: matrix.os == 'ubuntu-latest' && matrix.node == 16
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
strategy:
matrix:
include:
- node: 14
os: ubuntu-latest
- node: 16
os: ubuntu-latest
- node: 18
os: ubuntu-latest
- node: 16
os: macos-latest
- node: 16
os: windows-latest
name: build
on:
pull_request: {}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/.nyc_output
/.test.env.json
/coverage
/dist
/node_modules
7 changes: 1 addition & 6 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
"@semantic-release/npm",
"@semantic-release/github",
[
"@semantic-release/git",
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"CHANGELOG.md": true,
"LICENSE.md": true,
"coverage": true,
"dist": true,
"node_modules": true,
"yarn.lock": true
},
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

<!-- BADGES/ -->
<p>
<img src="https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue" alt="Linux macOS Windows compatible"><a href="https://github.com/dword-design/mock-argv/actions">
<a href="https://npmjs.org/package/mock-argv">
<img
src="https://img.shields.io/npm/v/mock-argv.svg"
alt="npm version"
>
</a><img src="https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue" alt="Linux macOS Windows compatible"><a href="https://github.com/dword-design/mock-argv/actions">
<img
src="https://github.com/dword-design/mock-argv/workflows/build/badge.svg"
alt="Build status"
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"license": "MIT",
"author": "Sebastian Landwehr <[email protected]>",
"type": "module",
"exports": "./dist/index.js",
"main": "dist/index.js",
"types": "types.d.ts",
"files": [
"dist",
Expand All @@ -38,8 +40,10 @@
"checkUnknownFiles": "base checkUnknownFiles",
"commit": "base commit",
"depcheck": "base depcheck",
"dev": "base dev",
"lint": "base lint",
"prepare": "base prepare",
"prepublishOnly": "base prepublishOnly",
"test": "base test"
},
"devDependencies": {
Expand Down

0 comments on commit aade087

Please sign in to comment.