Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
28 changes: 0 additions & 28 deletions .github/workflows/doc.yml

This file was deleted.

113 changes: 85 additions & 28 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,93 @@
name: Publish Package to npmjs
name: Publish Firekit

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
branches:
- main

permissions:
contents: write
id-token: write
pull-requests: write

jobs:
build:
publish:
runs-on: ubuntu-latest
outputs:
new_version: ${{ steps.read_version.outputs.version }}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- name: Checkout repository
uses: actions/checkout@v4
with:
node-version: '17.x'
fetch-depth: 0
token: ${{ secrets.GIT_BOT_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install and Build 🔧

- name: Update npm
run: npm install -g npm@latest

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build --if-present

- name: Test
run: npm test --if-present

- name: Publish package
run: npm publish --access public --provenance

- name: Read published version
id: read_version
run: |
VERSION=$(node -p "require('./package.json').version")
echo "version=$VERSION" >> "$GITHUB_OUTPUT"

update-dashboard:
needs: publish
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.LEVANTE_BOT_APP_ID }}
private_key: ${{ secrets.LEVANTE_BOT_APP_PRIVATE_KEY }}
repository: levante-framework/levante-dashboard

- name: Checkout dashboard repository
uses: actions/checkout@v4
with:
repository: levante-framework/levante-dashboard
token: ${{ steps.generate_token.outputs.token }}
path: dashboard

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Update Firekit dependency
working-directory: dashboard
run: |
npm ci
npm run build
npm run format
- name: Publish 🚀
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
ROAR_CI_USER_EMAIL: ${{ secrets.ROAR_CI_USER_EMAIL }}
ROAR_CI_USER_PASSWORD: ${{ secrets.ROAR_CI_USER_PASSWORD }}
ROAR_FIREBASE_API_KEY: ${{ secrets.ROAR_FIREBASE_API_KEY }}
ROAR_FIREBASE_APP_ID: ${{ secrets.ROAR_FIREBASE_APP_ID }}
ROAR_FIREBASE_MEASUREMENT_ID: ${{ secrets.ROAR_FIREBASE_MEASUREMENT_ID }}
ROAR_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.ROAR_FIREBASE_MESSAGING_SENDER_ID }}
ROAR_FIREBASE_AUTH_DOMAIN: ${{ secrets.ROAR_FIREBASE_AUTH_DOMAIN }}
ROAR_FIREBASE_PROJECT_ID: ${{ secrets.ROAR_FIREBASE_PROJECT_ID }}
ROAR_FIREBASE_STORAGE_BUCKET: ${{ secrets.ROAR_FIREBASE_STORAGE_BUCKET }}
npm install @levante-framework/firekit@${{ needs.publish.outputs.new_version }}

- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate_token.outputs.token }}
path: dashboard
branch: chore/update-firekit-${{ needs.publish.outputs.new_version }}
commit-message: "chore: update firekit to ${{ needs.publish.outputs.new_version }}"
title: "chore: update firekit to ${{ needs.publish.outputs.new_version }}"
body: |
## Summary
- install @levante-framework/firekit@${{ needs.publish.outputs.new_version }}

Generated automatically after publishing firekit.
49 changes: 0 additions & 49 deletions .github/workflows/submit-dashboard-pr.yml

This file was deleted.

Binary file removed firebase/.DS_Store
Binary file not shown.
33 changes: 0 additions & 33 deletions firebase/admin/firebase.json

This file was deleted.

Empty file.
Loading
Loading