chore(deps): lock file maintenance #1984
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
| name: 'Deploy review app' | |
| on: | |
| pull_request: | |
| types: [opened, closed, synchronize] | |
| jobs: | |
| review-app: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | |
| - name: Checkout | |
| uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | |
| - name: Install NodeJS | |
| uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0 | |
| with: | |
| node-version: '16.x' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Lint links | |
| run: npm run lint-links | |
| - name: Comment PR | |
| if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }} | |
| uses: actions/github-script@f05a81df23035049204b043b50c3322045ce7eb3 # v3.1.1 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const { issue: { number: issue_number }, repo: { owner, repo } } = context; | |
| const body = 'A review app will be deployed. Get the URL by going to https://cds-snc.github.io/notification-documentation/'; | |
| github.issues.createComment({ issue_number, owner, repo, body }); | |
| - name: Build and deploy review app | |
| uses: sauloxd/review-apps@2564cf8a5e834c2813ace9af70dd7411f81433e4 # v2.0.0 | |
| with: | |
| branch: "gh-pages" | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| apps: | | |
| { | |
| "review-apps": { | |
| "build": "npm run build", | |
| "dist": "src/.vuepress/dist" | |
| } | |
| } |