Skip to content

Commit

Permalink
use shared actions
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Jun 27, 2024
1 parent 22d6dc4 commit 9c44272
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Node and dependencies
uses: baileympearson/drivers-github-tools/node/setup@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/setup@v2
- run: sudo apt-get install hugo
- name: Build Docs
run: npm run build:docs -- --yes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Node and dependencies
uses: baileympearson/drivers-github-tools/node/setup@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/setup@v2
- run: npm run check:dependencies
8 changes: 4 additions & 4 deletions .github/workflows/release-5.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jobs:
- uses: actions/checkout@v4

- name: Install Node and dependencies
uses: baileympearson/drivers-github-tools/node/setup@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/setup@v2
with:
ignore_install_scripts: false

- name: Load version and package info
uses: baileympearson/drivers-github-tools/node/get_version_info@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/get_version_info@v2
with:
npm_package_name: mongodb

- name: actions/compress_sign_and_upload
uses: baileympearson/drivers-github-tools/node/sign_node_package@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/sign_node_package@v2
with:
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }}
aws_region_name: us-east-1
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install Node and dependencies
uses: baileympearson/drivers-github-tools/node/setup@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/setup@v2

- run: npm publish --provenance --tag=5.x
if: ${{ needs.release_please.outputs.release_created }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fi
- uses: actions/checkout@v4
- name: Install Node and dependencies
uses: baileympearson/drivers-github-tools/node/setup@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/setup@v2
- run: npm version "${{ inputs.alphaVersion }}" --git-tag-version=false
- run: npm publish --provenance --tag=alpha
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Node and dependencies
uses: baileympearson/drivers-github-tools/node/setup@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/setup@v2
- id: build_nightly
run: npm run build:nightly
- if: ${{ steps.build_nightly.outputs.publish == 'yes' }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jobs:
- uses: actions/checkout@v4

- name: Install Node and dependencies
uses: baileympearson/drivers-github-tools/node/setup@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/setup@v2
with:
ignore_install_scripts: false

- name: Load version and package info
uses: baileympearson/drivers-github-tools/node/get_version_info@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/get_version_info@v2
with:
npm_package_name: mongodb

- name: actions/compress_sign_and_upload
uses: baileympearson/drivers-github-tools/node/sign_node_package@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/sign_node_package@v2
with:
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }}
aws_region_name: us-east-1
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install Node and dependencies
uses: baileympearson/drivers-github-tools/node/setup@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/setup@v2

- run: npm publish --provenance --tag=latest
if: ${{ needs.release_please.outputs.release_created }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

# Setup Node.js and npm install
- name: Install Node and dependencies
uses: baileympearson/drivers-github-tools/node/setup@add-signing-env-action-for-node
uses: mongodb-labs/drivers-github-tools/node/setup@v2

# See: https://github.com/googleapis/release-please/issues/1274

Expand Down

0 comments on commit 9c44272

Please sign in to comment.