Skip to content

Commit

Permalink
fix: upgrade node to 18
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Pregnolato committed Mar 13, 2024
1 parent ac08ddd commit 5119e34
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 59 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 24 additions & 24 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,52 @@ on:
branches:
- main
paths:
- 'docs/**'
- "docs/**"

env:
PROJECT_NAME: "neulabs-cdk-constructs"
AWS_REGION: "eu-west-1"
AWS_ROLE_NAME: 'github-oidc-workflow-role'
AWS_ROLE_NAME: "github-oidc-workflow-role"
AWS_ACCOUNT_ID: "482061573712" # AWS DevOps account id

permissions:
id-token: write
contents: read # This is required for actions/checkout
id-token: write
contents: read # This is required for actions/checkout

jobs:
trigger-workflow:
runs-on: ubuntu-22.04
steps:
- name: Git clone the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/${{ env.AWS_ROLE_NAME }}
aws-region: ${{ env.AWS_REGION }}
mask-aws-account-id: no

- name: Upload docs to S3 bucket
run: |
python3 .github/scripts/upload_docs.py --project-name ${{ env.PROJECT_NAME }}
python3 .github/scripts/upload_docs.py --project-name ${{ env.PROJECT_NAME }}
- name: Trigger deploy workflow in neulbas-docs Repository
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.NEULABS_MANAGE_ACTION_WORKFLOWS }}
retries: 3
script: |
const owner = 'neulabscom';
const repo = 'neulabs-docs';
const event_type = 'deploy';
const ref = 'main';
github.rest.repos.createDispatchEvent({
owner,
repo,
event_type,
client_payload: {
"project_name": process.env.PROJECT_NAME
}
});
github-token: ${{ secrets.NEULABS_MANAGE_ACTION_WORKFLOWS }}
retries: 3
script: |
const owner = 'neulabscom';
const repo = 'neulabs-docs';
const event_type = 'deploy';
const ref = 'main';
github.rest.repos.createDispatchEvent({
owner,
repo,
event_type,
client_payload: {
"project_name": process.env.PROJECT_NAME
}
});
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-lint.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions .github/workflows/upgrade-main.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.16.0
4 changes: 2 additions & 2 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5119e34

Please sign in to comment.