Start omorphia 2 (#8)

This commit is contained in:
Prospector
2023-02-16 14:02:39 -08:00
committed by GitHub
parent 87251878a5
commit 0faa24d5d3
236 changed files with 6323 additions and 12309 deletions

View File

@@ -1,63 +0,0 @@
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- uses: pnpm/action-setup@v2.2.2
with:
version: 7
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run build
run: VITE_API_URL="https://staging-api.modrinth.com/v2/" pnpm build
- name: Run package
run: pnpm package
- name: Run lint
run: pnpm lint
- name: Run check
run: pnpm check
release:
needs: [lint]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.2
with:
version: 7
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- name: Bump version
run: pnpm version patch --commit-hooks false --git-tag-version false
- uses: EndBug/add-and-commit@v9
with:
message: 'Bump package version [skip ci]'
default_author: github_actions
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Package
run: pnpm package
- name: Publish
run: |
cd package
npm publish --tag alpha
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@@ -1,18 +0,0 @@
name: Deploy
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Wait for CF Pages
id: cf-pages
uses: WalshyDev/cf-pages-await@v1
with:
project: 'omorphia'
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: '9ddae624c98677d68d93df6e524a6061'
githubToken: ${{ secrets.GITHUB_TOKEN }}
commitHash: ${{ steps.push-changes.outputs.commit-hash }}