Skip to content

Commit

Permalink
fix: tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongnd-ahiho committed Feb 6, 2024
1 parent 8226314 commit e1a7c0d
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 36 deletions.
59 changes: 30 additions & 29 deletions .github/workflows/publish_npm.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
name: 📦 Publish NPM
# name: 📦 Publish NPM

on:
release:
types:
- published
# on:
# release:
# types:
# - published

jobs:
release:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
# jobs:
# release:
# name: Publish
# runs-on: ubuntu-latest
# steps:
# - 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/
# - uses: actions/setup-node@v4
# with:
# node-version: 20
# registry-url: https://registry.npmjs.org/

- run: yarn ci:install
env:
NODE_AUTH_TOKEN: ${{ secrets.PAT }}
# - run: yarn ci:install
# env:
# NODE_AUTH_TOKEN: ${{ secrets.PAT }}

- run: echo "PACKAGE=$(sed -e s:@[^@]*$::g <<< ${GITHUB_REF#refs/*/})" >> $GITHUB_ENV
- run: echo "RELEASE_VERSION=$(sed -e s:.*@::g <<< ${GITHUB_REF#refs/*/})" >> $GITHUB_ENV
# - run: echo "PACKAGE=$(sed -e s:@[^@]*$::g <<< ${GITHUB_REF#refs/*/})" >> $GITHUB_ENV
# - run: echo "RELEASE_VERSION=$(sed -e s:.*@::g <<< ${GITHUB_REF#refs/*/})" >> $GITHUB_ENV

- run: |
yarn nx publish ${PACKAGE} --ver ${RELEASE_VERSION} --access public
env:
GH_TOKEN: ${{ secrets.PAT }}
NODE_AUTH_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - run: |
# npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
# yarn nx publish ${PACKAGE} --ver ${RELEASE_VERSION} --access public
# env:
# GH_TOKEN: ${{ secrets.PAT }}
# NODE_AUTH_TOKEN: ${{ github.token }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion packages/commitlint-config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"allowJs": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-ecmascript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"allowJs": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"allowJs": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"allowJs": true,
Expand Down
3 changes: 1 addition & 2 deletions packages/eslint-config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"allowJs": true,
Expand All @@ -9,7 +9,6 @@
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"baseUrl": "."
},
"files": [],
"include": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/prettier-config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"allowJs": true,
Expand Down

0 comments on commit e1a7c0d

Please sign in to comment.