From 199788ffe4d10a1818969a3af1193e1d2f5332b0 Mon Sep 17 00:00:00 2001 From: allan Date: Thu, 25 Jun 2026 14:54:05 +0100 Subject: [PATCH 1/2] chore: using oidc npm token --- .github/workflows/main.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ed815c..0c55e7d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,10 +11,24 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + contents: write + issues: write + pull-requests: write + id-token: write # required for npm Trusted Publishing (OIDC) steps: - name: Checkout uses: actions/checkout@v6 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + registry-url: 'https://registry.npmjs.org' + + - name: Ensure npm supports Trusted Publishing + run: npm install -g npm@latest + - name: Install dependencies run: | npm ci @@ -58,7 +72,9 @@ jobs: uses: cycjimmy/semantic-release-action@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + # NPM_TOKEN no longer required: package is published via npm + # Trusted Publishing (OIDC). The id-token: write permission above + # allows npm CLI to authenticate to the registry automatically. - name: SAS Packages Release run: | From f8a684194819db68aa4aa572a40449a7b6e98d82 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 25 Jun 2026 13:54:26 +0000 Subject: [PATCH 2/2] chore: updating all.sas --- all.sas | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/all.sas b/all.sas index 6335d9f..e41857a 100644 --- a/all.sas +++ b/all.sas @@ -12184,7 +12184,8 @@ https://blogs.sas.com/content/sastraining/2012/08/14/jedi-sas-tricks-reset-sas-s %mp_abort(iftrue=(&iserr=1),mac=mp_retainedkey,msg=%superq(msg)) proc sql noprint; -select sum(max(&retained_key),0) into: maxkey from &base_libds; +select sum(max(&retained_key),0) format=32. into: maxkey trimmed + from &base_libds; /** * get base table RK and bus field values for lookup @@ -12253,19 +12254,19 @@ quit; insert into &maxkeytable set keytable="&base_libds" ,keycolumn="&retained_key" - ,max_key=%eval(&maxkey+&newkey_cnt) + ,max_key=%sysevalf(&maxkey+&newkey_cnt) ,processed_dttm="%sysfunc(datetime(),%mf_fmtdttm())"dt; %end; %else %do; update &maxkeytable - set max_key=%eval(&maxkey+&newkey_cnt) + set max_key=%sysevalf(&maxkey+&newkey_cnt) ,processed_dttm="%sysfunc(datetime(),%mf_fmtdttm())"dt where keytable="&base_libds"; %end; %mp_lockanytable(UNLOCK ,lib=%scan(&maxkeytable,1,.) ,ds=%scan(&maxkeytable,2,.) - ,ref=Updating maxkeyvalues with maxkey=%eval(&maxkey+&newkey_cnt) + ,ref=Updating maxkeyvalues with maxkey=%sysevalf(&maxkey+&newkey_cnt) ,ctl_ds=&locktable ) %end; @@ -12273,7 +12274,7 @@ quit; /* fill in the missing retained key values */ %let tempvar=%mf_getuniquename(); data &outds(drop=&tempvar); - retain &tempvar %eval(&maxkey+1); + retain &tempvar %sysevalf(&maxkey+1); set &tempds2; if &retained_key =. then &retained_key=&tempvar; &tempvar=&tempvar+1;