-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from AndreaPontrandolfo/AndreaPontrandolfo/issue6
feat(ci): Setup automatic releases and publishing
- Loading branch information
Showing
4 changed files
with
1,519 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read # for checkout | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Pnpm Setup | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 8 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "lts/*" | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Release | ||
run: pnpm semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ pids | |
logs | ||
reports | ||
build | ||
dist | ||
node_modules | ||
npm-debug.log | ||
sftp-config.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"name": "eslint-plugin-remeda", | ||
"version": "0.0.0", | ||
"version": "0.0.0-development", | ||
"author": "Andrea Pontrandolfo <[email protected]>", | ||
"description": "ESLint plugin for Remeda library.", | ||
"type": "commonjs", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"coveralls": "nyc report --reporter=text-lcov | coveralls", | ||
"knip": "knip", | ||
"publint": "publint", | ||
"test": "npm run unit-test", | ||
"unit-test": "cross-env nyc mocha \"tests/**/*.js\" --reporter=dot", | ||
"patch": "npm version patch -m\"update version to %s\" && git push --follow-tags", | ||
"minor": "npm version minor -m\"update version to %s\" && git push --follow-tags", | ||
"major": "npm version major -m\"update version to %s\" && git push --follow-tags" | ||
"semantic-release": "semantic-release" | ||
}, | ||
"files": [ | ||
"README.md", | ||
|
@@ -42,10 +42,12 @@ | |
"mocha": "^9.2.2", | ||
"nyc": "^15.1.0", | ||
"prettier": "^3.3.2", | ||
"publint": "^0.2.8", | ||
"semantic-release": "^24.0.0", | ||
"typescript": "^5.5.2" | ||
}, | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=20" | ||
}, | ||
"keywords": [ | ||
"eslint", | ||
|
Oops, something went wrong.