Skip to content

Commit

Permalink
Merge pull request #9 from samcyn/feat/issue-doc-update
Browse files Browse the repository at this point in the history
Feat/issue doc update
  • Loading branch information
samcyn authored Apr 1, 2024
2 parents 4c5d492 + 0172508 commit ae2c6d6
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish to npm with Yarn

on:
push:
branches:
- release
pull_request:
branches:
- release

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.9.0

- name: Install Yarn
run: npm install -g [email protected]

- name: Install dependencies with Yarn
run: yarn install --frozen-lockfile

- name: Run tests with Yarn
run: yarn test

- name: Publish to npm with Yarn
if: github.event_name == 'push' && github.ref == 'refs/heads/release'
run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/update-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to npm with Yarn

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.9.0

- name: Install Yarn
run: npm install -g [email protected]

- name: Install dependencies with Yarn
run: yarn install --frozen-lockfile

- name: Run tests with Yarn
run: yarn test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"workspaces": [
"packages/*"
],
"version": "1.0.2",
"version": "1.0.3",
"author": "samcyn <[email protected]>",
"license": "MIT",
"devDependencies": {
Expand Down

0 comments on commit ae2c6d6

Please sign in to comment.