Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
env:
NODE_OPTIONS: '--max-old-space-size=8192'

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
publish-to-npm:
runs-on: ubuntu-latest
Expand All @@ -21,7 +25,7 @@ jobs:
exit 1
fi

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}
fetch-depth: 0
Expand All @@ -42,12 +46,7 @@ jobs:
echo "LIBS=${LIBS[@]}" >> $GITHUB_ENV
(IFS=,; printf 'The following workspaces will be published: [%s]\n' "${LIBS[*]}")

- name: Configuring git
run: |
git config user.name '${{ github.actor }}'
git config user.email '${{ github.actor }}@users.noreply.github.com'

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
cache: yarn
node-version: ${{ vars.NODEJS_VERSION }}
Expand All @@ -71,9 +70,8 @@ jobs:

- name: Publish workspaces to NPM
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
yarn config set npmScopes.openshift-assisted.npmAuthToken $NPM_AUTH_TOKEN
for LIB in $(echo ${LIBS}); do
printf 'Publishing @openshift-assisted/%s\n' "${LIB}"
yarn workspace @openshift-assisted/${LIB} npm publish
Expand Down
Loading