Skip to content

Commit

Permalink
chore: add release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
FRSgit committed Apr 17, 2024
1 parent ddc46be commit cd1c90a
Show file tree
Hide file tree
Showing 18 changed files with 197 additions and 620 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Lint
on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
build-and-release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# pulls all commits (needed for lerna / semantic release to correctly version)
fetch-depth: "0"
- name: Setup git user
run: |
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- name: Authenticate with Registry
run: |
echo "registry=http://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: build
run: pnpm build
- name: release package
if: ${{ success() && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
run: pnpm release --dry-run
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49 changes: 0 additions & 49 deletions .github/workflows/code-quality.yml

This file was deleted.

135 changes: 0 additions & 135 deletions .github/workflows/deploy-stage.yml

This file was deleted.

110 changes: 0 additions & 110 deletions .github/workflows/deploy.yml

This file was deleted.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"pnpm": ">=8.7.6"
},
"scripts": {
"release": "release-it"
},
"devDependencies": {
"release-it": "^17.2.0"
"release": "pnpm run -r release"
}
}
1 change: 1 addition & 0 deletions packages/eslint/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.release-it.cjs
6 changes: 6 additions & 0 deletions packages/eslint/.release-it.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { monorepoIndependent } = require("@frsource/release-it-config");

module.exports = monorepoIndependent({
name: "eslint-config",
buildCmd: "", // no build needed
});
20 changes: 0 additions & 20 deletions packages/eslint/.release-it.json

This file was deleted.

Loading

0 comments on commit cd1c90a

Please sign in to comment.