mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
chore(build): change to pnpm from yarn (#919)
* flip to npm * try pnpm * nothing good started with p anyway * I want to go outside. * Split out deps and build * 30 seconds on the fetch, reintroduce the p * lock it in * flip lock file to pnpm * nuke yarn.lock * kirby no longer has yarn * flip goreleaser to v4, was using node12. * snapshots don't have tags * Update README.md * pin offline dockerfile * Delete .yarnrc.yml * Delete web/.yarn directory * fix: update scripts --------- Co-authored-by: ze0s <ze0s@riseup.net>
This commit is contained in:
parent
ac61334f93
commit
762a0bb36b
8 changed files with 5248 additions and 8137 deletions
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
|
@ -23,17 +23,24 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'yarn'
|
||||
cache-dependency-path: web/yarn.lock
|
||||
cache: 'pnpm'
|
||||
cache-dependency-path: web/pnpm-lock.yaml
|
||||
|
||||
- name: Build web
|
||||
run: |
|
||||
cd web && yarn install --frozen-lockfile
|
||||
CI= yarn build
|
||||
- name: Fetch web dependencies
|
||||
working-directory: web
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build web frontend
|
||||
working-directory: web
|
||||
run: CI= pnpm run build
|
||||
|
||||
- name: Upload web production build
|
||||
uses: actions/upload-artifact@v3
|
||||
|
@ -85,11 +92,11 @@ jobs:
|
|||
cache: true
|
||||
|
||||
- name: Run GoReleaser build
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
uses: goreleaser/goreleaser-action@v4
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
args: release --clean --skip-publish
|
||||
args: release --clean --skip-validate --skip-publish
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
@ -124,7 +131,7 @@ jobs:
|
|||
cache: true
|
||||
|
||||
- name: Run GoReleaser build and publish tags
|
||||
uses: goreleaser/goreleaser-action@v3
|
||||
uses: goreleaser/goreleaser-action@v4
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
|
|
11
Dockerfile
11
Dockerfile
|
@ -1,11 +1,10 @@
|
|||
# build web
|
||||
FROM node:18.7.0-alpine3.16 AS web-builder
|
||||
COPY . ./
|
||||
WORKDIR /web
|
||||
COPY web/package.json web/yarn.lock web/.yarnrc.yml ./
|
||||
COPY web/.yarn/releases/ ./.yarn/releases/
|
||||
RUN yarn install --network-timeout 120000
|
||||
COPY web .
|
||||
RUN yarn build
|
||||
RUN npm install -g pnpm && \
|
||||
pnpm install --frozen-lockfile && \
|
||||
pnpm run build
|
||||
|
||||
# build app
|
||||
FROM golang:1.20-alpine3.16 AS app-builder
|
||||
|
@ -55,4 +54,4 @@ COPY --from=app-builder /src/bin/autobrrctl /usr/local/bin/
|
|||
EXPOSE 7474
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/autobrr", "--config", "/config"]
|
||||
#CMD ["--config", "/config"]
|
||||
#CMD ["--config", "/config"]
|
||||
|
|
783
web/.yarn/releases/yarn-3.2.2.cjs
vendored
783
web/.yarn/releases/yarn-3.2.2.cjs
vendored
File diff suppressed because one or more lines are too long
|
@ -1,3 +0,0 @@
|
|||
yarnPath: .yarn/releases/yarn-3.2.2.cjs
|
||||
nodeLinker: node-modules
|
||||
enableGlobalCache: true
|
|
@ -6,7 +6,7 @@ This project uses React built with Vite.
|
|||
|
||||
In the project directory, you can run:
|
||||
|
||||
### `yarn start`
|
||||
### `pnpm start`
|
||||
|
||||
Runs the app in the development mode.\
|
||||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
||||
|
@ -14,7 +14,7 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|||
The page will reload if you make edits.\
|
||||
You will also see any lint errors in the console.
|
||||
|
||||
### `yarn build`
|
||||
### `pnpm run build`
|
||||
|
||||
Builds the app for production to the `dist` folder.\
|
||||
It correctly bundles React in production mode and optimizes the build for the best performance.
|
||||
|
@ -24,4 +24,4 @@ Your app is ready to be deployed!
|
|||
|
||||
## Learn More
|
||||
|
||||
To learn React, check out the [React documentation](https://reactjs.org/).
|
||||
To learn React, check out the [React documentation](https://reactjs.org/).
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
"build": "tsc && vite build",
|
||||
"serve": "vite preview",
|
||||
"lint": "eslint src/ --ext .js,.jsx,.ts,.tsx --color",
|
||||
"lint:watch": "npm run lint -- --watch"
|
||||
"lint:watch": "pnpm run lint -- --watch"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
@ -77,6 +77,5 @@
|
|||
"tailwindcss": "^3.1.3",
|
||||
"typescript": "^4.7.3",
|
||||
"vite": "^4.2.1"
|
||||
},
|
||||
"packageManager": "yarn@3.2.2"
|
||||
}
|
||||
}
|
||||
|
|
5222
web/pnpm-lock.yaml
generated
Normal file
5222
web/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load diff
7330
web/yarn.lock
7330
web/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue