Skip to content

Commit 285cfad

Browse files
committed
ci: cleanup before publishing to npmjs.com
Refs #3900
1 parent b0fec25 commit 285cfad

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- run: |
6868
unzip released-version.zip
6969
RELEASED_VERSION=$(cat released-version.txt)
70-
echo "RELEASED_VERSION=RELEASED_VERSION" >> $GITHUB_ENV
70+
echo "RELEASED_VERSION=$RELEASED_VERSION" >> $GITHUB_ENV
7171
7272
- name: Set up QEMU
7373
uses: docker/setup-qemu-action@v2
@@ -85,7 +85,7 @@ jobs:
8585
uses: docker/build-push-action@v4
8686
with:
8787
context: .
88-
push: false
88+
push: true
8989
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/386,linux/ppc64le,linux/s390x
9090
tags: swaggerapi/swagger-editor:next-v5,swaggerapi/swagger-editor:v${{ env.RELEASED_VERSION }}
9191

@@ -94,6 +94,6 @@ jobs:
9494
with:
9595
context: .
9696
file: Dockerfile.unprivileged
97-
push: false
97+
push: true
9898
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/386,linux/ppc64le,linux/s390x
9999
tags: swaggerapi/swagger-editor:next-v5-unprivileged,swaggerapi/swagger-editor:v${{ env.RELEASED_VERSION }}-unprivileged

.github/workflows/nightly-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ jobs:
6666
- name: Upload npm artifact
6767
uses: actions/upload-artifact@v3
6868
with:
69-
name: "swagger-api-swagger-editor-next.tgz"
70-
path: ./swagger-api-swagger-editor-next-*.tgz
69+
name: "swagger-editor-next.tgz"
70+
path: ./swagger-editor-*.tgz

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Determine the next release version
2121
uses: cycjimmy/semantic-release-action@v3
2222
with:
23-
dry_run: true
23+
dry_run: false
2424
extra_plugins: |
2525
@semantic-release/git
2626
@semantic-release/exec
@@ -43,22 +43,22 @@ jobs:
4343
- name: Install dependencies
4444
run: npm ci
4545

46-
# - name: Prepare for the Release
47-
# env:
48-
# REACT_APP_VERSION: ${{ env.NEXT_RELEASE_VERSION }}
49-
# run: |
50-
# npm run lint
51-
# npm run test
52-
# npm run build:app
53-
# npm run cy:ci
54-
# npm run build:bundle:esm
55-
# npm run build:bundle:umd
46+
- name: Prepare for the Release
47+
env:
48+
REACT_APP_VERSION: ${{ env.NEXT_RELEASE_VERSION }}
49+
run: |
50+
npm run lint
51+
npm run test
52+
npm run build:app
53+
npm run cy:ci
54+
npm run build:bundle:esm
55+
npm run build:bundle:umd
5656
5757
- name: Semantic Release
5858
id: semantic
5959
uses: cycjimmy/semantic-release-action@v3
6060
with:
61-
dry_run: true
61+
dry_run: false
6262
extra_plugins: |
6363
@semantic-release/git
6464
env:

0 commit comments

Comments
 (0)