@@ -3,7 +3,7 @@ name: Publish packages
33on :
44 push :
55 tags :
6- - ' v[0-9]+.[0-9]+.[0-9]+ '
6+ - ' v* '
77
88jobs :
99
2828 echo "::set-output name=version::$(node -v)"
2929
3030 - name : Get node_modules cache
31- uses : actions/cache@v3.0.2
31+ uses : actions/cache@v4
3232 id : node_modules
3333 with :
3434 path : |
@@ -41,47 +41,47 @@ jobs:
4141 - name : Run linters
4242 run : npm run lint
4343
44- tests :
45- name : Test checks
46- runs-on : ubuntu-22.04
44+ # tests:
45+ # name: Test checks
46+ # runs-on: ubuntu-22.04
4747
48- steps :
49- - name : Check out code
50- uses : actions/checkout@v3
51- with :
52- fetch-depth : 2
48+ # steps:
49+ # - name: Check out code
50+ # uses: actions/checkout@v3
51+ # with:
52+ # fetch-depth: 2
5353
54- - name : Use Node.js 20.x
55- uses : actions/setup-node@v3
56- with :
57- node-version : 20.x
54+ # - name: Use Node.js 20.x
55+ # uses: actions/setup-node@v3
56+ # with:
57+ # node-version: 20.x
5858
59- - name : Get node version
60- id : node
61- run : |
62- echo "::set-output name=version::$(node -v)"
59+ # - name: Get node version
60+ # id: node
61+ # run: |
62+ # echo "::set-output name=version::$(node -v)"
6363
64- - name : Get node_modules cache
65- uses : actions/cache@v3.0.2
66- id : node_modules
67- with :
68- path : |
69- **/node_modules
70- key : ${{ runner.os }}-node_modules-${{ hashFiles('**/package.lock') }}-${{ steps.node.outputs.version }}
64+ # - name: Get node_modules cache
65+ # uses: actions/cache@v4
66+ # id: node_modules
67+ # with:
68+ # path: |
69+ # **/node_modules
70+ # key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package.lock') }}-${{ steps.node.outputs.version }}
7171
72- - name : Install dependencies
73- run : npm ci
72+ # - name: Install dependencies
73+ # run: npm ci
7474
75- - name : Install playwright browsers
76- run : |
77- sudo apt update
78- npx playwright install --with-deps
75+ # - name: Install playwright browsers
76+ # run: |
77+ # sudo apt update
78+ # npx playwright install --with-deps
7979
80- - name : Build
81- run : npm run build
80+ # - name: Build
81+ # run: npm run build
8282
83- - name : Run tests
84- run : npm run test
83+ # - name: Run tests
84+ # run: npm run test
8585
8686 bump-monorepo :
8787 name : Bump monorepo
@@ -135,8 +135,15 @@ jobs:
135135
136136 echo "Ignore list: $IGNORE_PACKAGES"
137137
138- # Find all package.json files and update versions
139- find . -name "package.json" -not -path "./node_modules/*" -not -path "./.git/*" | while read package_file; do
138+ # Find all package.json files and update versions, excluding all node_modules directories
139+ find . -name "package.json" \
140+ -not -path "*/node_modules/*" \
141+ -not -path "./.git/*" \
142+ -not -path "./.changeset/*" \
143+ -not -path "./.github/*" \
144+ -not -path "./.husky/*" \
145+ -not -path "./.turbo/*" | while read package_file; do
146+
140147 if [ "$package_file" != "./package.json" ]; then
141148 # Extract package name from package.json
142149 PACKAGE_NAME=$(node -e "
@@ -170,6 +177,10 @@ jobs:
170177 fi
171178 done
172179
180+ - name : ReInstall Dependencies
181+ run : |
182+ npm install
183+
173184 - name : Commit version
174185 run : |
175186 git add .
0 commit comments