Skip to content

Commit

Permalink
chore: Align @observerly/fits workspace packages with standard.
Browse files Browse the repository at this point in the history
chore: Align @observerly/fits workspace packages with standard.
  • Loading branch information
michealroberts committed Jul 29, 2023
1 parent 03a4734 commit e531a1a
Show file tree
Hide file tree
Showing 32 changed files with 2,013 additions and 4,593 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: fits/publish

on:
push:
branches:
- main
release:
types: [published]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
ci:
Expand All @@ -12,7 +14,11 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [17]
node: [18]

env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Checkout 🛎
Expand All @@ -35,11 +41,14 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- name: Install pnpm globally
run: npm install -g [email protected]

- name: Install project dependencies 👨🏻‍💻
run: npm ci
run: pnpm install

- name: Build the package ready for publishing
run: npm run build
run: pnpm run build

- uses: JS-DevTools/npm-publish@v1
with:
Expand All @@ -49,4 +58,4 @@ jobs:

- if: steps.publish.outputs.type != 'none'
run: |
echo "@observerly/polaris package version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
echo "@observerly/fits package version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
15 changes: 12 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: fits/vitest

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -12,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [16, 17]
node: [18, 19]

env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -39,8 +42,14 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- name: Install pnpm globally
run: npm install -g [email protected]

- name: Install project dependencies 👨🏻‍💻
run: npm ci
run: pnpm install

- name: Build the package ready for publishing
run: pnpm run build

- name: Run vitest tests 🧪
run: npm run test
run: pnpm run test
18 changes: 18 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# /*****************************************************************************************************************/

#// @author Michael Roberts <[email protected]>
#// @package @observerly/fits
#// @license Copyright © 2021-2023 observerly

#/*****************************************************************************************************************/

node-version=18.14.0
engine-strict=true

#/*****************************************************************************************************************/

registry=https://registry.npmjs.org/
@observerly:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}

#/*****************************************************************************************************************/
Loading

0 comments on commit e531a1a

Please sign in to comment.