chore(deps): bump semver from 5.7.1 to 5.7.2 #140
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
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: Deploy to Firebase Hosting Preview Channel on PR | |
"on": pull_request | |
jobs: | |
build_and_preview: | |
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}" | |
runs-on: ubuntu-latest | |
environment: | |
name: Preview | |
url: ${{ steps.deploy.outputs.urls }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: volta-cli/action@v4 | |
- name: Print node/npm/yarn info | |
id: info | |
run: | | |
node_ver=$( node --version ) | |
yarn_ver=$( yarn --version ) | |
echo "Node: ${node_ver:1}" | |
echo "NPM: $( npm --version )" | |
echo "Yarn: $yarn_ver" | |
echo "node_version=${node_ver:1}" >> $GITHUB_OUTPUT | |
echo "yarn_version=${yarn_ver}" >> $GITHUB_OUTPUT | |
echo "cache_dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
- name: Use yarn cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.info.outputs.cache_dir }} | |
key: ${{ runner.os }}-node-${{ steps.info.outputs.node_version }}-yarn-${{ steps.info.outputs.yarn_version }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ steps.info.outputs.node_version }}-yarn-${{ steps.info.outputs.yarn_version }}- | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Build web | |
run: yarn build | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
name: deploy | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_INVITION_STORYPOINTER }}" | |
expires: 30d | |
projectId: invition-storypointer |