main #1792
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| permissions: write-all # Equivalent to default permissions plus id-token: write | |
| env: | |
| AWS_REGION: us-east-2 | |
| PULUMI_API: https://api.pulumi-staging.io | |
| jobs: | |
| lint: | |
| name: Run lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: lint | |
| uses: ./.github/actions/lint | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: build | |
| uses: ./.github/actions/build | |
| test: | |
| # Only run tests on the schedule event | |
| # On 'push' we've just merged a PR that ran the tests | |
| if: github.event_name == 'schedule' | |
| name: acceptance-test | |
| uses: ./.github/workflows/acceptance-tests.yml | |
| secrets: inherit | |
| with: | |
| folder: examples | |
| integration-test: | |
| # Only run tests on the schedule event | |
| # On 'push' we've just merged a PR that ran the tests | |
| if: github.event_name == 'schedule' | |
| name: integration-test | |
| uses: ./.github/workflows/acceptance-tests.yml | |
| secrets: inherit | |
| with: | |
| folder: integration | |
| release: | |
| if: github.event_name == 'push' | |
| name: Release | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build | |
| - lint | |
| concurrency: | |
| group: release | |
| cancel-in-progress: false | |
| steps: | |
| - env: | |
| ESC_ACTION_ENVIRONMENT: github-secrets/${{ github.repository_owner }}-${{ github.event.repository.name }} | |
| ESC_ACTION_EXPORT_ENVIRONMENT_VARIABLES: "false" | |
| ESC_ACTION_OIDC_AUTH: "true" | |
| ESC_ACTION_OIDC_ORGANIZATION: pulumi | |
| ESC_ACTION_OIDC_REQUESTED_TOKEN_TYPE: urn:pulumi:token-type:access_token:organization | |
| id: esc-secrets | |
| name: Fetch secrets from ESC | |
| uses: pulumi/esc-action@9eb774255b1a4afb7855678ae8d4a77359da0d9b | |
| - uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 | |
| id: app-auth | |
| with: | |
| app-id: ${{ steps.esc-secrets.outputs.PULUMI_PROVIDER_AUTOMATION_APP_ID }} | |
| private-key: ${{ steps.esc-secrets.outputs.PULUMI_PROVIDER_AUTOMATION_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: Unshallow clone for tags | |
| run: git fetch --prune --unshallow --tags | |
| - name: Setup mise | |
| uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3 | |
| env: | |
| MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s | |
| with: | |
| version: 2026.3.6 | |
| github_token: ${{ steps.app-auth.outputs.token }} | |
| # only saving the cache in the prerequisites job | |
| cache_save: false | |
| - name: Install packages | |
| run: yarn install --frozen-lockfile | |
| - name: Run build | |
| run: yarn run set-version && yarn run build:ci | |
| - if: github.event_name == 'push' | |
| name: Publish Dev Package | |
| uses: JS-DevTools/npm-publish@v1 | |
| with: | |
| access: "public" | |
| token: ${{ steps.esc-secrets.outputs.NPM_TOKEN }} | |
| package: ${{github.workspace}}/package.json | |
| tag: dev | |
| check-version: true | |
| name: main | |
| "on": | |
| schedule: | |
| - cron: '0 3 * * *' | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - CHANGELOG.md | |
| tags-ignore: | |
| - v* | |
| - sdk/* | |
| - '**' |