Skip to content

Commit e179b67

Browse files
committed
ci(release): use npm granular token
1 parent 3e9958f commit e179b67

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/deprecate-version.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Deprecate package versions
22

33
on:
4-
push:
5-
branches:
6-
- ci/deprecate-v
74
workflow_dispatch:
85
inputs:
96
version:
@@ -23,7 +20,6 @@ jobs:
2320
runs-on: ubuntu-latest
2421
permissions:
2522
contents: read
26-
id-token: write
2723

2824
steps:
2925
- name: Generate token
@@ -74,9 +70,11 @@ jobs:
7470
run: npm install -g npm@latest
7571

7672
- name: Deprecate package versions
73+
env:
74+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7775
run: |
78-
VERSION="${{ inputs.version || '2.86.1-canary.0' }}"
79-
MESSAGE="${{ inputs.message || 'Testing deprecation' }}"
76+
VERSION="${{ inputs.version }}"
77+
MESSAGE="${{ inputs.message }}"
8078
8179
PACKAGES=(
8280
"supabase-js"
@@ -122,7 +120,7 @@ jobs:
122120
with:
123121
title: 'SDK Deprecation'
124122
status: 'success'
125-
version: ${{ inputs.version || '2.86.1-canary.0' }}
123+
version: ${{ inputs.version }}
126124
secrets: inherit
127125

128126
notify-failure:
@@ -132,5 +130,5 @@ jobs:
132130
with:
133131
title: 'SDK Deprecation'
134132
status: 'failure'
135-
version: ${{ inputs.version || '2.86.1-canary.0' }}
133+
version: ${{ inputs.version }}
136134
secrets: inherit

0 commit comments

Comments
 (0)