Skip to content

Commit

Permalink
feat: init client package
Browse files Browse the repository at this point in the history
  • Loading branch information
gregfrasco committed Jul 26, 2023
1 parent 221ed6f commit fccbc73
Show file tree
Hide file tree
Showing 10 changed files with 113 additions and 13,449 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: client
on:
workflow_dispatch:
push:
paths:
- 'client/**'
branches:
- main
tags:
- "v*.*.*"
pull_request:
paths:
- 'client/**'
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Authenticate with GitHub Packages
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc

- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish
if: startsWith(github.ref, 'refs/tags/v')
run: npm publish --access public --registry=https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit fccbc73

Please sign in to comment.