Skip to content

Commit

Permalink
fix: release packages
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongnd-ahiho committed Feb 5, 2024
1 parent 8adbcd0 commit 83d7a1e
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 24 deletions.
18 changes: 9 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ registries:
npm-github:
type: npm-registry
url: https://npm.pkg.github.com
token: ${{secrets.PAT}}
token: ${{ secrets.PAT }}
updates:
- package-ecosystem: 'npm'
- package-ecosystem: "npm"
registries:
- npm-github
directory: '/'
versioning-strategy: 'increase'
directory: "/"
versioning-strategy: "increase"
commit-message:
prefix: 'fix'
include: 'scope'
prefix: "fix"
include: "scope"
schedule:
interval: 'daily'
time: '06:00'
timezone: 'Asia/Bangkok'
interval: "daily"
time: "06:00"
timezone: "Asia/Bangkok"
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Semantic PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3.4.6
- uses: amannn/action-semantic-pull-request@v5
with:
validateSingleCommit: true
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/publish_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ jobs:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT }}

- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/

- run: yarn ci:install
env:
Expand All @@ -27,9 +28,7 @@ jobs:
- run: echo "RELEASE_VERSION=$(sed -e s:.*@::g <<< ${GITHUB_REF#refs/*/})" >> $GITHUB_ENV

- run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
yarn nx publish ${PACKAGE} --ver ${RELEASE_VERSION}
yarn nx publish ${PACKAGE} --ver ${RELEASE_VERSION} --access public
env:
GH_TOKEN: ${{ secrets.PAT }}
NODE_AUTH_TOKEN: ${{ github.token }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
Expand Down
2 changes: 1 addition & 1 deletion packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "https://github.com/ahiho/tjs-configs.git",
"directory": "packages/commitlint-config"
},
"license": "MIT",
"license": "UNLICENSED",
"author": "Thanh Vu <[email protected]>",
"type": "commonjs",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-ecmascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "https://github.com/ahiho/tjs-configs.git",
"directory": "packages/eslint-config-ecmascript"
},
"license": "MIT",
"license": "UNLICENSED",
"author": "Thanh Vu <[email protected]>",
"type": "commonjs",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "https://github.com/ahiho/tjs-configs.git",
"directory": "packages/eslint-config-react"
},
"license": "MIT",
"license": "UNLICENSED",
"author": "Thanh Vu <[email protected]>",
"type": "commonjs",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "https://github.com/ahiho/tjs-configs.git",
"directory": "packages/eslint-config-typescript"
},
"license": "MIT",
"license": "UNLICENSED",
"author": "Thanh Vu <[email protected]>",
"type": "commonjs",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "https://github.com/ahiho/tjs-configs.git",
"directory": "packages/eslint-config"
},
"license": "MIT",
"license": "UNLICENSED",
"author": "Thanh Vu <[email protected]>",
"type": "commonjs",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "https://github.com/ahiho/tjs-configs.git",
"directory": "packages/prettier-config"
},
"license": "MIT",
"license": "UNLICENSED",
"author": "Thanh Vu <[email protected]>",
"type": "commonjs",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "https://github.com/ahiho/tjs-configs.git",
"directory": "packages/tsconfig"
},
"license": "MIT",
"license": "UNLICENSED",
"author": "Thanh Vu <[email protected]>",
"main": "tsconfig.json",
"engines": {
Expand Down

0 comments on commit 83d7a1e

Please sign in to comment.