Skip to content

Commit

Permalink
chore(ci): configure
Browse files Browse the repository at this point in the history
  • Loading branch information
R11manish committed Jan 19, 2024
1 parent b3ee582 commit 65b222f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Install pnpm
run: npm install -g pnpm@7.33.5
- name: Install dependencies
run: pnpm install
- name: Install semantic-release extra plugins
run: pnpm install -D @semantic-release/changelog @semantic-release/git
- name: Lint
run: pnpm lint
- name: Build Graphql queries
run: pnpm mesh build
- name: Format code
run: pnpm format
- name: Test
run: pnpm test
- name: Build
run: pnpm build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm dlx semantic-release@22.0.12
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Install pnpm
run: npm install -g pnpm@7.33.5
- name: Install dependencies
run: pnpm install
- name: Install semantic-release extra plugins
run: pnpm install -D @semantic-release/changelog @semantic-release/git
- name: Lint
run: pnpm lint
- name: Build Graphql queries
run: pnpm mesh build
- name: Format code
run: pnpm format
- name: Test
run: pnpm test
- name: Build
run: pnpm build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
#run: pnpm dlx semantic-release@22.0.12
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint
pnpm format
pnpm format
4 changes: 0 additions & 4 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
module.exports = {
branches: [
'main',
{
name: 'beta',
prerelease: true
}
],
plugins: [
'@semantic-release/commit-analyzer',
Expand Down

0 comments on commit 65b222f

Please sign in to comment.