Skip to content

Commit

Permalink
Merge pull request #1 from xponential-asia/fix/init-project
Browse files Browse the repository at this point in the history
fix: init project and fix bug handle guest user azure ad
  • Loading branch information
pornchaiXpo authored Dec 25, 2024
2 parents b4c3359 + 391c3d6 commit 61fbb9d
Show file tree
Hide file tree
Showing 165 changed files with 4,949 additions and 23,403 deletions.
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

51 changes: 0 additions & 51 deletions .eslintrc.js

This file was deleted.

13 changes: 0 additions & 13 deletions .github/FUNDING.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/medusa-plugin-auth.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/medusa-plugin-prometheus.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/medusa-plugin-sentry.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Release

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn
- run: yarn build

release:
name: Semantic Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install dependencies for release
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org/'
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish package to NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Test

on:
pull_request:
branches:
- main

jobs:
test:
strategy:
matrix:
node-version: [20.x]
name: Node
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ matrix.node-version }}
uses: actions/checkout@v3

- name: Setup and Test ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- name: Install node modules
shell: bash
run: yarn

- name: Build
shell: bash
run: yarn build

- name: Unit testing and collect coverage
shell: bash
run: yarn test
20 changes: 14 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
.idea
/lib
*/**/dist
.vscode

/api
/core
/handlers
/utils
/types
/services
/loaders
/auth-strategies

node_modules
.DS_store
**/.DS_Store

dist
coverage

/tsconfig.tsbuildinfo
/packages/tsconfig.tsbuildinfo
/package-lock.json
/yarn.json
tsconfig.tsbuildinfo
package-lock.json
yarn.json

.env.*
11 changes: 0 additions & 11 deletions .prettierignore

This file was deleted.

10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

18 changes: 18 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"dryRun": false,
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
["@semantic-release/npm", { "npmPublish": false }],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
],
"branches": ["main"]
}
File renamed without changes.
Loading

0 comments on commit 61fbb9d

Please sign in to comment.