chore(deps-dev): bump @types/node from 20.16.1 to 22.5.0 #584
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: 'preview' | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
# use default types + closed event type | |
types: [opened, synchronize, reopened, closed] | |
jobs: | |
preview: # make sure the action works on a clean machine without building | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
id: preview_step | |
name: test afc163/surge-preview | |
with: | |
surge_token: ${{ secrets.SURGE_TOKEN }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
teardown: 'true' | |
dist: public/preview | |
build: | | |
mkdir -p public/preview | |
npm install | |
npm run build-preview -- public/preview | |
- name: Get the output url | |
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}" | |
preview2: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
id: preview_action | |
name: test afc163/surge-preview | |
with: | |
# test the default 'github_token' value here | |
surge_token: ${{ secrets.SURGE_TOKEN }} | |
teardown: 'true' | |
dist: public/preview2 | |
build: | | |
mkdir -p public/preview2 | |
npm install | |
npm run build-preview -- public/preview2 | |
- name: Get the output url | |
run: echo "url => ${{ steps.preview_action.outputs.preview_url }}" |