Skip to content

Commit

Permalink
Merge pull request #11 from AndreaPontrandolfo/AndreaPontrandolfo/issue6
Browse files Browse the repository at this point in the history
feat(ci): Setup automatic releases and publishing
  • Loading branch information
AndreaPontrandolfo committed Jul 6, 2024
2 parents 9d88510 + d185746 commit 63a7abd
Show file tree
Hide file tree
Showing 4 changed files with 1,519 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pids
logs
reports
build
dist
node_modules
npm-debug.log
sftp-config.json
Expand Down
12 changes: 7 additions & 5 deletions package.json
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",
Expand Down Expand Up @@ -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",
Expand Down
Loading

0 comments on commit 63a7abd

Please sign in to comment.