Bump protobufjs from 6.11.3 to 6.11.4 #523
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: Test and publish | |
on: | |
push: | |
branches: | |
- "main" | |
paths-ignore: | |
- "**/*.md" | |
pull_request: | |
branches: | |
- "**" | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- name: Install deps | |
run: npm ci | |
- name: Build | |
id: pack-dir | |
run: ./build.sh | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: reactfire-${{ github.run_id }} | |
path: | | |
reactfire.tgz | |
publish.sh | |
unpack.sh | |
retention-days: 1 | |
test: | |
runs-on: ubuntu-latest | |
needs: build | |
strategy: | |
matrix: | |
node: ["18", "20"] | |
fail-fast: false | |
name: Test Node.js ${{ matrix.node }} (Ubuntu) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
cache: 'npm' | |
- name: Install deps | |
run: npm ci | |
- name: Install deps for functions | |
run: npm install | |
working-directory: ./functions | |
- name: Firebase emulator cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/firebase/emulators | |
key: firebase_emulators | |
- name: 'Download Artifacts' | |
uses: actions/download-artifact@v3 | |
- name: Expand Artifact | |
run: | | |
chmod +x reactfire-${{ github.run_id }}/unpack.sh | |
./reactfire-${{ github.run_id }}/unpack.sh | |
- name: Run tests | |
run: npm run test | |
publish: | |
runs-on: ubuntu-latest | |
name: Publish (NPM) | |
needs: test | |
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }} | |
steps: | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
registry-url: 'https://registry.npmjs.org' | |
- name: 'Download Artifacts' | |
uses: actions/download-artifact@v3 | |
- name: Publish | |
run: | | |
cd ./reactfire-${{ github.run_id }}/ | |
chmod +x publish.sh | |
./publish.sh | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |