Skip to content

Commit

Permalink
ci: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 24, 2024
1 parent ec999ca commit 0cbbabd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Expand Up @@ -15,26 +15,29 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install
run: npm install --no-package-lock
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: latest
run_install: true
- name: Test
run: npm test
- name: Report
run: mkdir -p coverage && npx c8 report --reporter=text-lcov > coverage/lcov.info
run: npx c8 report --reporter=text-lcov > coverage/lcov.info
- name: Coverage
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
if: ${{ github.ref == 'refs/heads/master' && !startsWith(github.event.head_commit.message, 'chore(release):') && !startsWith(github.event.head_commit.message, 'docs:') }}
env:
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config --global user.email ${{ secrets.GIT_EMAIL }}
Expand Down
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -31,22 +31,21 @@
],
"dependencies": {
"@keyvhq/memoize": "~2.1.0",
"is-stream": "~2.0.0",
"lodash": "~4.17.21",
"reachable-url": "~1.8.0"
},
"devDependencies": {
"@commitlint/cli": "latest",
"@commitlint/config-conventional": "latest",
"ava": "latest",
"@ksmithut/prettier-standard": "latest",
"ava": "5",
"c8": "latest",
"ci-publish": "latest",
"conventional-github-releaser": "latest",
"finepack": "latest",
"git-authors-cli": "latest",
"github-generate-release": "latest",
"nano-staged": "latest",
"npm-check-updates": "latest",
"prettier-standard": "latest",
"simple-git-hooks": "latest",
"standard": "latest",
"standard-markdown": "latest",
Expand All @@ -66,7 +65,7 @@
"prerelease": "npm run update:check && npm run contributors",
"pretest": "npm run lint",
"release": "standard-version -a",
"release:github": "conventional-github-releaser -p angular",
"release:github": "github-generate-release",
"release:tags": "git push --follow-tags origin HEAD:master",
"test": "c8 ava",
"update": "ncu -u",
Expand All @@ -85,8 +84,9 @@
}
],
"nano-staged": {
"*.js,!*.min.js,": [
"prettier-standard"
"*.js": [
"prettier-standard",
"standard --fix"
],
"*.md": [
"standard-markdown"
Expand Down

0 comments on commit 0cbbabd

Please sign in to comment.