Skip to content

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebbink committed Sep 19, 2024
1 parent 363ba1b commit 2ce4b93
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build and Test

on:
push:
# branches:
# - master
branches:
- master
pull_request:
branches:
- master
Expand All @@ -14,24 +14,19 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # 4.0.3
with:
node-version-file: .nvmrc
cache: 'yarn'

- name: Install dependencies
run: yarn install

- name: Lint
run: yarn lint

- name: Build
run: yarn build

- name: Test
run: yarn test
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish

on:
push:
# tags:
# - v*
workflow_dispatch:

permissions:
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # 4.0.3
with:
node-version-file: .nvmrc
- name: Build
run: yarn install && yarn build
- name: Publish
run: |
echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}'>.npmrc
npm publish

0 comments on commit 2ce4b93

Please sign in to comment.