install pnpm through corepack (#2864)
* install pnpm through corepack * remove engine from services package.json
This commit is contained in:
parent
3442668194
commit
3365bf8b22
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
||||
node_modules
|
||||
**/dist
|
||||
.DS_Store
|
||||
Dockerfile
|
6
.github/workflows/publish.yaml
vendored
6
.github/workflows/publish.yaml
vendored
@ -19,10 +19,10 @@ jobs:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: pnpm/action-setup@v4
|
||||
- uses: actions/setup-node@v3
|
||||
- run: corepack enable && corepack prepare --activate
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version-file: package.json
|
||||
cache: 'pnpm'
|
||||
- run: pnpm i --frozen-lockfile
|
||||
- run: pnpm build
|
||||
|
21
.github/workflows/repo.yaml
vendored
21
.github/workflows/repo.yaml
vendored
@ -15,13 +15,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
run_install: false
|
||||
- run: corepack enable && corepack prepare --activate
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version-file: package.json
|
||||
cache: 'pnpm'
|
||||
- name: Get current month
|
||||
run: echo "CURRENT_MONTH=$(date +'%Y-%m')" >> $GITHUB_ENV
|
||||
@ -48,13 +45,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
run_install: false
|
||||
- run: corepack enable && corepack prepare --activate
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version-file: package.json
|
||||
cache: 'pnpm'
|
||||
- name: Get current month
|
||||
run: echo "CURRENT_MONTH=$(date +'%Y-%m')" >> $GITHUB_ENV
|
||||
@ -75,13 +69,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
run_install: false
|
||||
- run: corepack enable && corepack prepare --activate
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version-file: package.json
|
||||
cache: 'pnpm'
|
||||
- name: Get current month
|
||||
run: echo "CURRENT_MONTH=$(date +'%Y-%m')" >> $GITHUB_ENV
|
||||
|
@ -6,7 +6,7 @@
|
||||
"license": "MIT",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
"node": "18"
|
||||
},
|
||||
"packageManager": "pnpm@8.15.9",
|
||||
"scripts": {
|
||||
|
@ -22,7 +22,6 @@
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.6.3"
|
||||
},
|
||||
|
@ -22,7 +22,6 @@
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.6.3"
|
||||
},
|
||||
|
@ -1,9 +1,13 @@
|
||||
FROM node:20.11-alpine as build
|
||||
|
||||
RUN npm install -g pnpm
|
||||
RUN corepack enable
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./package.json ./
|
||||
RUN corepack prepare --activate
|
||||
|
||||
# Move files into the image and install
|
||||
WORKDIR /app
|
||||
COPY ./*.* ./
|
||||
# NOTE bsky's transitive dependencies go here: if that changes, this needs to be updated.
|
||||
COPY ./tsconfig ./tsconfig
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "bsky-app-view-service",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@8.15.9",
|
||||
"dependencies": {
|
||||
"@atproto/bsky": "workspace:^",
|
||||
"@atproto/crypto": "workspace:^",
|
||||
|
@ -1,9 +1,13 @@
|
||||
FROM node:18-alpine as build
|
||||
|
||||
RUN npm install -g pnpm
|
||||
RUN corepack enable
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./package.json ./
|
||||
RUN corepack prepare --activate
|
||||
|
||||
# Move files into the image and install
|
||||
WORKDIR /app
|
||||
COPY ./*.* ./
|
||||
# NOTE bsync's transitive dependencies go here: if that changes, this needs to be updated.
|
||||
COPY ./tsconfig ./tsconfig
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "bsync-service",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@8.15.9",
|
||||
"dependencies": {
|
||||
"@atproto/bsync": "workspace:^",
|
||||
"dd-trace": "3.13.2"
|
||||
|
@ -1,9 +1,13 @@
|
||||
FROM node:18-alpine as build
|
||||
|
||||
RUN npm install -g pnpm
|
||||
RUN corepack enable
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./package.json ./
|
||||
RUN corepack prepare --activate
|
||||
|
||||
# Move files into the image and install
|
||||
WORKDIR /app
|
||||
COPY ./*.* ./
|
||||
# NOTE ozones's transitive dependencies go here: if that changes, this needs to be updated.
|
||||
COPY ./tsconfig ./tsconfig
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "ozone-service",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@8.15.9",
|
||||
"dependencies": {
|
||||
"@atproto/aws": "workspace:^",
|
||||
"@atproto/ozone": "workspace:^",
|
||||
|
@ -2,10 +2,14 @@
|
||||
# see additional reference to this image further down.
|
||||
FROM node:20.11-alpine3.18 as build
|
||||
|
||||
RUN npm install -g pnpm
|
||||
RUN corepack enable
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./package.json ./
|
||||
RUN corepack prepare --activate
|
||||
|
||||
# Move files into the image and install
|
||||
WORKDIR /app
|
||||
COPY ./*.* ./
|
||||
# NOTE pds's transitive dependencies go here: if that changes, this needs to be updated.
|
||||
COPY ./tsconfig ./tsconfig
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "plc-service",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@8.15.9",
|
||||
"dependencies": {
|
||||
"@atproto/pds": "workspace:^",
|
||||
"@opentelemetry/instrumentation": "^0.45.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user