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
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
# NOTE: Hard Coded Node Version
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn && yarn setup
- name: Retrieve version
run : echo "NEW_VERSION=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
id: version
- run: pnpm run setup
- run:
echo "Check NPM Authentication"
yarn npm whoami
- run: yarn npm publish --access public
npm whoami
- run: pnpm publish --access public
29 changes: 17 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,43 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22.x
cache: 'yarn'
cache: 'pnpm'

- name: Install and build packages
run: yarn && yarn setup
run: pnpm install --frozen-lockfile && pnpm run setup

- name: Lint codebase
run: yarn lint
run: pnpm run lint

run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
# Node 24 pinned. See issue #399
node-version: [22.x, 24.4]
node-version: [22.x, 24.x]
steps:
- name: Check out code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache: 'pnpm'

- name: Install and build packages
run: yarn && yarn setup
run: pnpm install --frozen-lockfile && pnpm run setup

- name: Test
run: yarn test
run: pnpm test
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ dist
tmp
coverage

# .yarn
.yarn/install-state.gz
.yarn
948 changes: 0 additions & 948 deletions .yarn/releases/yarn-4.9.1.cjs

This file was deleted.

5 changes: 0 additions & 5 deletions .yarnrc.yml

This file was deleted.

19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "2.2.2",
"version": "2.3.0",
"description": "Download a specific release from github",
"type": "module",
"files": [
Expand All @@ -14,17 +14,17 @@
"typings": "dist/src/index.d.ts",
"scripts": {
"build": "tsc --project tsconfig.json",
"build:watch": "yarn build --watch",
"build:watch": "tsc --project tsconfig.json --watch",
"lint": "eslint --ignore-pattern .gitignore",
"lint:fix": "yarn lint --fix",
"setup": "yarn && yarn build",
"lint:fix": "pnpm lint --fix",
"setup": "pnpm install && pnpm build",
"test": "NODE_OPTIONS='--experimental-vm-modules' jest",
"test:cov": "NODE_OPTIONS='--experimental-vm-modules' jest --collectCoverage",
"test:watch": "NODE_OPTIONS='--experimental-vm-modules' jest --coverage=false --notify --watch --onlyChanged",
"test:debug": "NODE_OPTIONS='--experimental-vm-modules' env DEBUG=\"${DEBUG:-*teraslice*}\" jest --detectOpenHandles --coverage=false --runInBand",
"check": "yarn run lint && yarn run test",
"check": "pnpm run lint && pnpm run test",
"clean": "rimraf dist coverage",
"prepublishOnly": "yarn run clean && yarn run build"
"prepublishOnly": "pnpm run clean && pnpm run build"
},
"bin": "bin/fetch-github-release",
"repository": {
Expand All @@ -49,12 +49,14 @@
"yargs": "^18.0.0"
},
"devDependencies": {
"@jest/globals": "^30.3.0",
"@terascope/eslint-config": "^1.1.30",
"@types/jest": "^30.0.0",
"@types/multi-progress": "^2.0.6",
"@types/node": "^24.12.0",
"@types/stream-buffers": "^3.0.8",
"@types/tmp": "^0.2.6",
"@types/yargs": "^17.0.35",
"eslint": "^9.39.4",
"jest": "^30.3.0",
"jest-extended": "^7.0.0",
Expand All @@ -67,7 +69,8 @@
"typescript": "^5.9.3"
},
"engines": {
"node": ">=22.0.0"
"node": ">=22.0.0",
"pnpm": ">=10.32.1"
},
"packageManager": "yarn@4.9.1"
"packageManager": "pnpm@10.32.1"
}
Loading