Skip to content

Commit

Permalink
add changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-french committed Feb 28, 2024
1 parent 5687c94 commit 51b1772
Show file tree
Hide file tree
Showing 9 changed files with 497 additions and 1,037 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
19 changes: 15 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,19 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '16.13.1'
cache: 'npm'
cache: 'yarn'

- run: npm i
- run: npm run build
- run: npm test
- name: Install dependencies
run: yarn install

- name: Build lib package
run: yarn workspace opticks build

- name: Test lib package
run: yarn workspace opticks test

- name: Build cli package
run: yarn workspace opticks-cli build

- name: Test cli package
run: yarn workspace opticks-cli test
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: '16.13.1'
cache: 'npm'
cache: 'yarn'

- run: npm i
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
publish: yarn run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7 changes: 0 additions & 7 deletions nx.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
]
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"nx": "17.2.8",
"prettier": "^2.8.3"
},
"packageManager": "[email protected]",
Expand Down
13 changes: 9 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@
"version": "1.0.0",
"description": "The Opticks Command Line Interface",
"main": "dist/index.mjs",
"bin": {
"opticks-cli": "dist/index.mjs"
"bin": "dist/index.mjs",
"engines": {
"node": "16.13.1"
},
"license": "MIT",
"license": "ISC",
"author": "Dale French",
"scripts": {
"build": "tsup",
"build:watch": "nodemon --watch src -e ts --exec \"yarn build\"",
"test": "jest src",
"test:watch": "jest --watch src"
"test:watch": "jest --watch src",
"prepare": "npm run build",
"release": "npm run prepare && npx changeset publish",
"changeset": "npx changeset"
},
"dependencies": {
"enquirer": "^2.4.1",
Expand Down
1 change: 0 additions & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"@optimizely/optimizely-sdk": "~4.4.3"
},
"devDependencies": {
"@changesets/cli": "^2.26.0",
"@optimizely/optimizely-sdk": "~4.4.3",
"@types/jest": "^29.4.0",
"jest": "^29.4.0",
Expand Down
Loading

0 comments on commit 51b1772

Please sign in to comment.