chore(github): setup Github oidc #2
Workflow file for this run
This file contains 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
name: Remove PR Preview | |
on: | |
pull_request_target: | |
types: | |
- closed | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
jobs: | |
remove: | |
name: remove-pr-preview | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Configure AWS Credentials - Serverless Marketing AWS Account | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::488110005556:role/GithubActionsDeploymentRole | |
aws-region: us-east-1 | |
- name: Serverless Remove - PR Preview | |
uses: serverless/github-action@v4 | |
with: | |
args: remove --stage pr-${{ github.event.pull_request.number }} | |
env: | |
SERVERLESS_LICENSE_KEY: ${{ secrets.SERVERLESS_LICENSE_KEY }} |