This message was deleted.
# general
s
This message was deleted.
f
this is my new github action yaml
Copy code
jobs:
  preview:
    name: Preview
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: 14.x
      - name: Configure AWS Credentials
        uses: aws-actions/configure-aws-credentials@v1
        with:
          aws-access-key-id: ${{ secrets.DEPLOYBOT_AWS_ACCESS_KEY_ID }}
          aws-region: us-west-2
          aws-secret-access-key: ${{ secrets.DEPLOYBOT_AWS_SECRET_ACCESS_KEY }}
      - run: npm install
      - uses: pulumi/actions@v3
        with:
          command: preview
          stack-name: staging
          comment-on-pr: true
          github-token: ${{ secrets.GITHUB_TOKEN }}
          work-dir: backend-pulumi
        env:
          PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
this was my old one.
Copy code
jobs:
  preview:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 1
      - uses: <docker://pulumi/actions>
        with:
          args: preview
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.DEPLOYBOT_AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.DEPLOYBOT_AWS_SECRET_ACCESS_KEY }}
          PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
          PULUMI_CI: pr
          PULUMI_ROOT: backend-pulumi
the old one works
b
@fancy-manchester-67426 in your
npm install
step does it install your deps? do you have the pulumi sdk in your package.json?
f
this is my package.json
Copy code
{
  "name": "aws-typescript",
  "devDependencies": {
    "@types/node": "^8.0.0"
  },
  "dependencies": {
    "@pulumi/aws": "^3.0.0",
    "@pulumi/awsx": "^0.20.0",
    "@pulumi/docker": "^2.0.0",
    "@pulumi/pulumi": "^2.0.0"
  }
}
oh do i need a new sdk for this?
i thought the sdk was “@pulumi/pulumi”
b
I tnink you'll need the v3 version of the SDK for this ti work
if you could open an issue on github.com/pulumi/pulumi with this info I'll get someone to confirm
f
yeah i am running version v3.9.1 locally
i can try upgrading my pulumi package
b
sorry I meant you'll need to update your
package.json
to the latest version of the SDK:
Copy code
"@pulumi/pulumi": "^3.0.0"
f
ah gotcha. that probably is the issue