Skip to content

Commit cbf6bda

Browse files
authored
Merge pull request #254 from ngageoint/allow-publish-fail
separate out package deployments to allow failures
2 parents e9bd82d + 44c828d commit cbf6bda

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

.github/workflows/release.arcgis_plugin.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ jobs:
6666
uses: actions/download-artifact@v4
6767
with:
6868
name: arcgis.web-app-artifacts
69-
- name: publish to package registry
69+
- name: publish arcgis service
7070
run: |
7171
npm config set -- '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN }}
72-
npm publish --access public $(ls -1 ngageoint-mage.arcgis.service-*.tgz)
73-
npm publish --access public $(ls -1 ngageoint-mage.arcgis.web-app-*.tgz)
72+
npm publish --access public $(ls -1 ngageoint-mage.arcgis.service-*.tgz) || echo "skipping arcgis service plugin publish..."
73+
- name: publish arcgis web
74+
run: |
75+
npm config set -- '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN }}
76+
npm publish --access public $(ls -1 ngageoint-mage.arcgis.web-app-*.tgz) || echo "skipping arcgis web plugin publish..."

.github/workflows/release.sftp_plugin.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ jobs:
6666
uses: actions/download-artifact@v4
6767
with:
6868
name: sftp.web-artifacts
69-
- name: publish to package registry
69+
- name: publish sftp service
7070
run: |
7171
npm config set -- '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN }}
72-
npm publish --access public $(ls -1 ngageoint-mage.sftp.service-*.tgz)
73-
npm publish --access public $(ls -1 ngageoint-mage.sftp.web-*.tgz)
72+
npm publish --access public $(ls -1 ngageoint-mage.sftp.service-*.tgz) || echo "skipping sftp service plugin publish..."
73+
- name: publish sftp web
74+
run: |
75+
npm config set -- '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN }}
76+
npm publish --access public $(ls -1 ngageoint-mage.sftp.web-*.tgz) || echo "skipping sftp web plugin publish"

.github/workflows/release.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,15 @@ jobs:
125125
uses: actions/download-artifact@v4
126126
with:
127127
name: mage.web-app-artifacts
128-
- name: publish to package registry
128+
- name: publish mage service
129129
run: |
130130
npm config set -- '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN }}
131-
npm publish --access public $(ls -1 ngageoint-mage.service-*.tgz)
132-
npm publish --access public $(ls -1 ngageoint-mage.web-core-lib-*.tgz)
133-
npm publish --access public $(ls -1 ngageoint-mage.web-app-*.tgz)
131+
npm publish --access public $(ls -1 ngageoint-mage.service-*.tgz) || echo "skipping mage service publish..."
132+
- name: publish mage web
133+
run: |
134+
npm config set -- '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN }}
135+
npm publish --access public $(ls -1 ngageoint-mage.web-app-*.tgz) || echo "skipping mage web app publish..."
136+
- name: publish mage core
137+
run: |
138+
npm config set -- '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_TOKEN }}
139+
npm publish --access public $(ls -1 ngageoint-mage.web-core-lib-*.tgz) || echo "skipping mage core publish..."

0 commit comments

Comments
 (0)