Skip to content

Commit 5bcf426

Browse files
authored
feat: remove changesets (#30)
1 parent 5e76c6b commit 5bcf426

File tree

8 files changed

+28
-1181
lines changed

8 files changed

+28
-1181
lines changed

.changeset/README.md

-8
This file was deleted.

.changeset/config.json

-12
This file was deleted.

.changeset/flat-shoes-tickle.md

-7
This file was deleted.

.github/workflows/canary.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,16 @@ jobs:
77
name: Publish Packages (canary)
88
runs-on: ubuntu-latest
99

10-
strategy:
11-
matrix:
12-
node-version: [16.x]
13-
1410
steps:
15-
- name: Checkout repo
11+
- name: Checkout Repo
1612
uses: actions/checkout@v3
1713

18-
- name: Install node
14+
- name: Install Node
1915
uses: actions/setup-node@v3
2016
with:
21-
node-version: ${{ matrix.node-version }}
22-
registry-url: "https://registry.npmjs.org"
23-
cache: "yarn"
17+
cache: 'yarn'
2418

25-
- name: Install dependencies
19+
- name: Install Dependencies
2620
run: yarn --frozen-lockfile --network-concurrency 1
2721

2822
- name: Build

.github/workflows/release.yml

+11-18
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
11
name: Release
22

3-
on:
4-
push:
5-
branches:
6-
- dev
7-
8-
concurrency: ${{ github.workflow }}-${{ github.ref }}
3+
on: workflow_dispatch
94

105
jobs:
116
release:
12-
# We want the release to run from the public repo
13-
if: github.repository == 'defi-wonderland/smock-foundry'
147
name: Release
158
runs-on: ubuntu-latest
9+
1610
steps:
1711
- name: Checkout Repo
1812
uses: actions/checkout@v3
1913

20-
- name: Setup Node.js 16.x
14+
- name: Install Node
2115
uses: actions/setup-node@v3
2216
with:
23-
node-version: 16.x
17+
cache: 'yarn'
2418

2519
- name: Install Dependencies
26-
run: yarn
20+
run: yarn --frozen-lockfile --network-concurrency 1
2721

28-
- name: Create Release Pull Request or Publish to npm
29-
id: changesets
30-
uses: changesets/action@v1
31-
with:
32-
publish: yarn release
22+
- name: Build
23+
run: yarn build
24+
25+
- name: Publish
26+
run: npm publish --access public
3327
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

-6
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,6 @@ greeter.set__greeting('Hola');
112112
- Cannot `set` private variables and mock private functions.
113113
- Mocking of structs containing mappings is not supported.
114114

115-
## Release
116-
117-
We use changesets to mark packages for new releases. When merging commits to the dev branch you MUST include a changeset file if your change would require that a new version of a package be released.
118-
119-
To add a changeset, run the command `yarn changeset` in the root of this repo. You will be presented with a small prompt to select the packages to be released, the scope of the release (major, minor, or patch), and the reason for the release. Comments within changeset files will be automatically included in the changelog of the package.
120-
121115
# Licensing
122116

123117
The primary license for Smock Foundry is MIT, see [`LICENSE`](./LICENSE).

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"lint:fix": "sort-package-json && forge fmt && yarn lint:ts-logic --fix",
2222
"lint:ts-logic": "eslint ./src/**/*.ts",
2323
"mock-gen": "ts-node src/run.ts mock-gen",
24-
"release": "yarn build && yarn changeset publish",
2524
"test": "forge build --skip test && cross-env mocha 'test/**/*.spec.ts' && forge test",
2625
"test:mocha": "cross-env mocha 'test/**/*.spec.ts'"
2726
},
@@ -36,7 +35,6 @@
3635
"yargs": "17.7.2"
3736
},
3837
"devDependencies": {
39-
"@changesets/cli": "^2.26.1",
4038
"@commitlint/cli": "17.0.3",
4139
"@commitlint/config-conventional": "17.0.3",
4240
"@types/chai": "4.3.5",

0 commit comments

Comments
 (0)