Skip to content

Commit

Permalink
feat: added changeset ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Oct 25, 2023
1 parent 4dc05aa commit 4c5ea43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

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

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Create Release Pull Request
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install"
"prepare": "husky install",
"release": "pnpm --recursive run lint && pnpm --recursive run build && pnpm --recursive run test"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 4c5ea43

Please sign in to comment.