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
15 changes: 5 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

permissions:
contents: read
id-token: write

jobs:
publish:
Expand All @@ -26,12 +27,6 @@ jobs:
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1 (sdk-node publish)
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Verify npm auth
run: npm whoami

- name: Install dependencies
run: bun install --frozen-lockfile
Expand All @@ -49,9 +44,9 @@ jobs:
if echo "$VERSION" | grep -q "-"; then
TAG=$(echo "$VERSION" | sed 's/.*-\([a-zA-Z]*\).*/\1/')
echo "Publishing @runwayml/avatars prerelease with --tag $TAG"
npm publish --access public --tag "$TAG"
npm publish --access public --provenance --tag "$TAG"
else
npm publish --access public
npm publish --access public --provenance
fi

- name: Publish react
Expand All @@ -61,7 +56,7 @@ jobs:
if echo "$VERSION" | grep -q "-"; then
TAG=$(echo "$VERSION" | sed 's/.*-\([a-zA-Z]*\).*/\1/')
echo "Publishing @runwayml/avatars-react prerelease with --tag $TAG"
npm publish --access public --tag "$TAG"
npm publish --access public --provenance --tag "$TAG"
else
npm publish --access public
npm publish --access public --provenance
fi
Loading