Skip to content

Commit

Permalink
Merge branch 'beta' of github.com:agoda-com/eslint-config-agoda into …
Browse files Browse the repository at this point in the history
…beta
  • Loading branch information
Thatchapon Unprasert committed Nov 11, 2024
2 parents 2b6bd29 + 492390f commit 4e36e57
Show file tree
Hide file tree
Showing 6 changed files with 333 additions and 226 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- run: yarn install --frozen-lockfile
- run: yarn semantic-release
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- run: yarn install --frozen-lockfile
- run: yarn semantic-release
2 changes: 1 addition & 1 deletion .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
env:
CI: true
steps:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/validate-semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Validate semantic release

on: [pull_request]

jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: |
GITHUB_REF=${{ github.head_ref }}
yarn semantic-release --no-ci --dry-run --branches ${{ github.head_ref }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"husky": "^9.1.6",
"jest": "^29.7.0",
"react": "^17.0.2",
"semantic-release": "^22.0.0",
"semantic-release": "^24.2.0",
"typescript": "^5.6.3"
},
"scripts": {
Expand All @@ -78,7 +78,7 @@
"prerelease": "beta"
},
{
"name": "develop/*",
"name": "*",
"channel": "alpha",
"prerelease": "alpha"
}
Expand Down
Loading

0 comments on commit 4e36e57

Please sign in to comment.