Skip to content

Commit 909d1c8

Browse files
chore: use trusted publishers (#223)
1 parent ed0d4aa commit 909d1c8

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
tags:
55
- 'v*'
66

7+
permissions:
8+
contents: read
9+
id-token: write
10+
711
jobs:
812
build:
913

@@ -30,9 +34,7 @@ jobs:
3034
- run: |
3135
LATEST=$(npm show @unleash/proxy version)
3236
TAG=$(node scripts/npm-tag.js $LATEST)
33-
npm publish --tag ${TAG:-latest}
34-
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
npm publish --provenance --tag ${TAG:-latest}
3638
- name: Mark package as deprecated on npm
3739
run: |
3840
VERSION="${GITHUB_REF_NAME#v}"

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
FROM node:20-alpine as builder
1+
FROM node:22.22-alpine3.23 AS builder
22

33
WORKDIR /unleash-proxy
44

55
COPY . .
66

77
RUN corepack enable
88

9-
ENV YARN_ENABLE_SCRIPTS=false
9+
ENV YARN_ENABLE_SCRIPTS false
1010

1111
RUN yarn install --immutable
1212

1313
RUN yarn build
1414

1515
RUN yarn workspaces focus -A --production
1616

17-
FROM node:20-alpine
17+
FROM node:22.22-alpine3.23
1818

1919
# Upgrade (addresses OpenSSL CVE-2023-6237 && CVE-2024-2511)
2020
RUN apk update && \

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@unleash/proxy",
3-
"version": "1.4.16",
3+
"version": "1.4.17",
44
"description": "The Unleash Proxy (Open-Source)",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)