Skip to content

Commit

Permalink
chore: package defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed Dec 2, 2023
1 parent 5776893 commit 9c2b2d5
Show file tree
Hide file tree
Showing 7 changed files with 2,765 additions and 582 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release-beta

on:
push:
tags:
- '*-beta.*'

jobs:
publish_beta:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Test
run: npm run test

- name: Compile
run: npm run build

- name: Publish
run: |
npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release-beta

on:
push:
tags-ignore:
- '*-beta.*'

jobs:
publish_beta:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Test
run: npm run test

- name: Compile
run: npm run build

- name: Publish
run: |
npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm build
- name: Test
run: npm run test:ci
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.16.0
Loading

0 comments on commit 9c2b2d5

Please sign in to comment.