Skip to content

Commit

Permalink
on to release processes...
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnlindsay committed Oct 13, 2023
1 parent 4fd703a commit 87565cf
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NodeJS with Webpack
name: Scratch Workflow

on:
pull_request:
Expand All @@ -11,27 +11,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [16.x] # we should pull this from a common place

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npm run build
- name: Configure AWS credentials for Non-Prod
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::654344198836:role/github-actions-oidc-role-nonprod-sign-embedded
aws-region: us-east-1

# - name: Copy files to test locations
# run: |
# aws s3 cp umd/* s3://cdn.qa-hellosign.com/test/js/embedded/
- name: Get current version
run: cat package.json
40 changes: 40 additions & 0 deletions .github/workflows/publish-beta-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: New Pull request; publish as beta package

on:
pull_request:
branches: [ "master" ]

jobs:
env:
CDN_AWS_PUBLISH_ROLE: arn:aws:iam::654344198836:role/github-actions-oidc-role-nonprod-sign-embedded
CDN_PUBLISH_LOCATION: s3://cdn.staging-hellosign.com/test/js/embedded/
build:
permissions:
id-token: write # This is required for requesting the JWT
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x] # we should pull this from a common place

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npm run build
- name: Configure AWS credentials for Non-Prod
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.CDN_AWS_PUBLISH_ROLE }}
aws-region: us-east-1

- name: Copy files to test locations
run: |
aws s3 cp umd/* ${{ env.CDN_PUBLISH_LOCATION }}
17 changes: 17 additions & 0 deletions .github/workflows/publish-prod-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Changes approved; deploy to prod

#on:
# merge:
# branches: [ "master" ]

jobs:
build:
permissions:
id-token: write # This is required for requesting the JWT
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x] # we should pull this from a common place

steps:
- uses: actions/checkout@v3

0 comments on commit 87565cf

Please sign in to comment.