Skip to content

Commit

Permalink
test: testing commands without publishing or uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
daine committed Feb 2, 2024
1 parent 603faf8 commit 714d729
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/compile-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,16 @@ jobs:
# role-session-name: CDNPublish
# aws-region: ${{ env.CDN_REGION }}

# - name: Update CDN ${{ matrix.name }}
- name: Update CDN ${{ matrix.name }} (test)
# if: steps.publish.outputs.id != ''
# run: |
# PUBLISHED_PACKAGE="${{ steps.publish.outputs.id }}"
run: |
PUBLISHED_PACKAGE="gcds-components@latest"
# PUBLISHED_PACKAGE="${{ steps.publish.outputs.id }}"
#
# mkdir -p ./tmp \
# && sleep 60 \
# && npm install --prefix ./tmp "$PUBLISHED_PACKAGE" \
# && cd ./tmp/node_modules
mkdir -p ./tmp \
&& sleep 60 \
&& npm install --prefix ./tmp "$PUBLISHED_PACKAGE" \
&& cd ./tmp/node_modules
#
# aws s3 sync ./${{ matrix.name }} s3://${{ env.CDN_BUCKET }}/"$PUBLISHED_PACKAGE" --delete
# aws s3 sync ./${{ matrix.name }} s3://${{ env.CDN_BUCKET }}/${{ matrix.name }}@latest --delete
Expand Down Expand Up @@ -106,10 +107,12 @@ jobs:
- name: "@cdssnc/gcds-components-react"
package: "./packages/react"
dist: "./packages/react"
cdn: "gcds-components-react"

- name: "@cdssnc/gcds-components-angular"
package: "./packages/angular"
dist: "./packages/angular/dist"
cdn: "gcds-components-angular"
steps:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down Expand Up @@ -140,14 +143,16 @@ jobs:
# role-session-name: CDNPublish
# aws-region: ${{ env.CDN_REGION }}
#
# - name: Update CDN ${{ matrix.name }}
- name: Update CDN ${{ matrix.name }} (test)
# if: steps.publish.outputs.id != ''
# run: |
run: |
PUBLISHED_PACKAGE="${{ matrix.cdn }}@latest"
# PUBLISHED_PACKAGE="${{ steps.publish.outputs.id }}"
#
# mkdir -p ./tmp \
# && npm install --prefix ./tmp "$PUBLISHED_PACKAGE" \
# && cd ./tmp/node_modules
mkdir -p ./tmp \
&& npm install --prefix ./tmp "$PUBLISHED_PACKAGE" \
&& cd ./tmp/node_modules
#
# aws s3 sync ./${{ matrix.name }} s3://${{ env.CDN_BUCKET }}/"$PUBLISHED_PACKAGE" --delete
# aws s3 sync ./${{ matrix.name }} s3://${{ env.CDN_BUCKET }}/${{ matrix.name }}@latest --delete
Expand Down

0 comments on commit 714d729

Please sign in to comment.