Skip to content

Commit

Permalink
attempt publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Mar 7, 2024
1 parent 43bec0a commit 5cd2127
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
name: Snapshot Publish
runs-on: ubuntu-latest

permissions:
id-token: write

strategy:
matrix:
package:
Expand Down Expand Up @@ -56,6 +59,13 @@ jobs:
- name: Build all workspace packages
run: pnpm build

- uses: jfrog/setup-jfrog-cli@v4
with:
version: latest
oidc-provider-name: github # must match the OpenID Connect name from https://blockxyz.jfrog.io/ui/admin/configuration/integrations
env:
JF_URL: https://blockxyz.jfrog.io

- name: Publish @web5/${{ matrix.package }}@${{ env.REPO_VERSION }}
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Expand Down Expand Up @@ -88,6 +98,7 @@ jobs:
jq '.publishConfig.registry = "https://blockxyz.jfrog.io/artifactory/api/npm/tbd-oss-snapshots-npm/"' package.json > package-new.json
mv package-new.json package.json
# publish
# login to jfrog and publish
jf npm-config --global=true --repo-resolve=tbd-oss-snapshots-npm --repo-deploy=tbd-oss-snapshots-npm
npm publish --registry https://blockxyz.jfrog.io/artifactory/api/npm/tbd-oss-snapshots-npm/
shell: bash

0 comments on commit 5cd2127

Please sign in to comment.