Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Application
APP_NAME=iiitr
APP_NAME=example-app
APP_PORT=3000
APP_HOST="localhost"
APP_URL="http://localhost"
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: "CI: test, coverage & build"
name: "CI: test & build"

on: [push, pull_request]
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- master
- dev
- dev-v6

jobs:
build-and-test:
Expand Down Expand Up @@ -33,11 +40,10 @@ jobs:
# This runs vitest with coverage enabled
run: yarn test:coverage

- name: Upload to Coveralls
run: yarn coveralls
env:
# REQUIRED: The script needs this to know where to upload
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
base-path: packages/sequelize-guard

- name: Build the library
run: yarn build
17 changes: 12 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CD: Release version on tag push"
name: "CD: NPM publish with tag push"

on:
push:
Expand All @@ -7,7 +7,7 @@ on:

jobs:
release:
name: "Release to NPM"
name: "Publish on NPM"
runs-on: ubuntu-latest
environment: npm-publish
permissions:
Expand Down Expand Up @@ -43,7 +43,16 @@ jobs:
- name: Run tests with coverage
run: yarn test:coverage

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
base-path: packages/sequelize-guard

- name: Build the library
run: yarn build

- name: Set Version from Tag
working-directory: ./build/packages/sequelize-guard
run: |
# 1. Strip the 'v' prefix from the tag (v1.0.5 -> 1.0.5)
VERSION=${{ github.ref_name }}
Expand All @@ -55,10 +64,8 @@ jobs:
# Even if you use Yarn, 'npm version' is the safest tool for this specific task
npm version $VERSION --no-git-tag-version

- name: Build the library
run: yarn build

- name: Publish to NPM
working-directory: ./build/packages/sequelize-guard
run: |
if [[ "${{ github.ref_name }}" == *"-"* ]]; then
npm publish --provenance --access public --tag next
Expand Down
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ typings/

# Nuxt.js build / generate output
.nuxt
dist
dist/

build/

# Gatsby files
.cache/
Expand All @@ -110,3 +112,10 @@ dist
.idea/

.history/

.nx/cache
.nx/workspace-data
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md
vite.config.*.timestamp*
vitest.config.*.timestamp*
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
registry=https://registry.npmjs.org/
always-auth=false
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Add files here to ignore them from prettier formatting
/dist
/coverage
/.nx/cache
/.nx/workspace-data
Loading