Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,19 @@ jobs:
with:
node-version-file: ".tool-versions"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build
- name: enable corepack
run: |
corepack enable
corepack prepare yarn@4.9.2 --activate
- name: cache yarn dependencies
uses: actions/cache@v4
with:
path: ~/.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashfiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --immutable
- run: yarn build
- name: Publish to npm
run: |
if [ "${{ needs.check-version.outputs.is-prerelease }}" == "true" ]; then
Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,27 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: ".tool-versions"
registry-url: "https://registry.npmjs.org"
- name: enable corepack
run: |
corepack enable
corepack prepare yarn@4.9.2 --activate
- name: cache yarn dependencies
uses: actions/cache@v4
with:
path: ~/.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashfiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install packages
run: npm ci
- name: Install modules
run: yarn install --immutable

- name: Run prettier
run: npm run prettier
run: yarn prettier

- name: Run lints
run: npm run lint
run: yarn lint

- name: Run tests
run: npm run test
run: yarn test
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
coverage/
dist/
package.json
.yarnrc.yml
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { reforge, Reforge, ReforgeBootstrap } from "./src/reforge";
import { Config } from "./src/config";
import Context from "./src/context";
import version from "./src/version";
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { version } = require("./package.json");

export { reforge, Reforge, Config, Context, version };

Expand Down
Loading