Skip to content

Commit a3d6572

Browse files
committed
chore(ci): use single job for publish
1 parent 5230388 commit a3d6572

1 file changed

Lines changed: 12 additions & 115 deletions

File tree

.github/workflows/release.yaml

Lines changed: 12 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,10 @@ jobs:
7878
automatic_release_tag: ${{ steps.previoustag.outputs.tag }}
7979
files: 'CHANGELOG.md'
8080

81-
frontend-publish:
82-
name: Publish plugin frontend
81+
publish:
82+
name: Publish plugin packages
8383
runs-on: ubuntu-latest
8484
needs: [tagged-release]
85-
defaults:
86-
run:
87-
working-directory: ./plugins/toolbox
8885
steps:
8986
- uses: actions/checkout@v3
9087
with:
@@ -102,113 +99,13 @@ jobs:
10299
- run: git pull
103100
- run: yarn
104101
- run: yarn tsc
105-
- run: yarn build
106-
- run: yarn npm publish
107-
108-
react-publish:
109-
name: Publish plugin react
110-
runs-on: ubuntu-latest
111-
needs: [tagged-release]
112-
defaults:
113-
run:
114-
working-directory: ./plugins/toolbox-react
115-
steps:
116-
- uses: actions/checkout@v3
117-
with:
118-
fetch-depth: 0
119-
- name: Create yarnrc.yml
120-
run: |
121-
echo "npmAuthToken: ${{ secrets.NPM_TOKEN }}" >> ~/.yarnrc.yml
122-
echo "npmAlwaysAuth: true" >> ~/.yarnrc.yml
123-
echo "npmPublishRegistry: https://registry.npmjs.org" >> ~/.yarnrc.yml
124-
- name: Use Node.js 22.x
125-
uses: actions/setup-node@v4
126-
with:
127-
node-version: 22.x
128-
cache: 'yarn'
129-
- run: git pull
130-
- run: yarn
131-
- run: yarn tsc
132-
- run: yarn build
133-
- run: yarn npm publish
134-
135-
backend-publish:
136-
name: Publish plugin backend
137-
runs-on: ubuntu-latest
138-
needs: [tagged-release]
139-
defaults:
140-
run:
141-
working-directory: ./plugins/toolbox-backend
142-
steps:
143-
- uses: actions/checkout@v3
144-
with:
145-
fetch-depth: 0
146-
- name: Create yarnrc.yml
147-
run: |
148-
echo "npmAuthToken: ${{ secrets.NPM_TOKEN }}" >> ~/.yarnrc.yml
149-
echo "npmAlwaysAuth: true" >> ~/.yarnrc.yml
150-
echo "npmPublishRegistry: https://registry.npmjs.org" >> ~/.yarnrc.yml
151-
- name: Use Node.js 22.x
152-
uses: actions/setup-node@v4
153-
with:
154-
node-version: 22.x
155-
cache: 'yarn'
156-
- run: git pull
157-
- run: yarn
158-
- run: yarn tsc
159-
- run: yarn build
160-
- run: yarn npm publish
161-
162-
node-publish:
163-
name: Publish plugin node
164-
runs-on: ubuntu-latest
165-
needs: [tagged-release]
166-
defaults:
167-
run:
168-
working-directory: ./plugins/toolbox-node
169-
steps:
170-
- uses: actions/checkout@v3
171-
with:
172-
fetch-depth: 0
173-
- name: Create yarnrc.yml
174-
run: |
175-
echo "npmAuthToken: ${{ secrets.NPM_TOKEN }}" >> ~/.yarnrc.yml
176-
echo "npmAlwaysAuth: true" >> ~/.yarnrc.yml
177-
echo "npmPublishRegistry: https://registry.npmjs.org" >> ~/.yarnrc.yml
178-
- name: Use Node.js 22.x
179-
uses: actions/setup-node@v4
180-
with:
181-
node-version: 22.x
182-
cache: 'yarn'
183-
- run: git pull
184-
- run: yarn
185-
- run: yarn tsc
186-
- run: yarn build
187-
- run: yarn npm publish
188-
189-
whois-module-publish:
190-
name: Publish plugin whois-module
191-
runs-on: ubuntu-latest
192-
needs: [tagged-release]
193-
defaults:
194-
run:
195-
working-directory: ./plugins/toolbox-backend-module-whois
196-
steps:
197-
- uses: actions/checkout@v3
198-
with:
199-
fetch-depth: 0
200-
- name: Create yarnrc.yml
201-
run: |
202-
echo "npmAuthToken: ${{ secrets.NPM_TOKEN }}" >> ~/.yarnrc.yml
203-
echo "npmAlwaysAuth: true" >> ~/.yarnrc.yml
204-
echo "npmPublishRegistry: https://registry.npmjs.org" >> ~/.yarnrc.yml
205-
- name: Use Node.js 22.x
206-
uses: actions/setup-node@v4
207-
with:
208-
node-version: 22.x
209-
cache: 'yarn'
210-
- run: git pull
211-
- run: yarn
212-
- run: yarn tsc
213-
- run: yarn build
214-
- run: yarn npm publish
102+
- run: yarn --cwd plugins/toolbox build
103+
- run: yarn --cwd plugins/toolbox npm publish
104+
- run: yarn --cwd plugins/toolbox-react build
105+
- run: yarn --cwd plugins/toolbox-react npm publish
106+
- run: yarn --cwd plugins/toolbox-backend build
107+
- run: yarn --cwd plugins/toolbox-backend npm publish
108+
- run: yarn --cwd plugins/toolbox-node build
109+
- run: yarn --cwd plugins/toolbox-node npm publish
110+
- run: yarn --cwd plugins/toolbox-backend-module-whois build
111+
- run: yarn --cwd plugins/toolbox-backend-module-whois npm publish

0 commit comments

Comments
 (0)