Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 5 additions & 6 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
cache-dependency-path: |
package-lock.json
packages/*/patches/*.patch

- uses: actions/cache@v3
with:
path: '~/.npm'
key: ${{ runner.os }}-${{ matrix.node-version }}-npmcache-${{ hashFiles('package-lock.json') }}-${{ hashFiles('packages/*/patches/*.patch') }}
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('packages/*/patches/*.patch') }}

- name: Install Dependencies
run: npm i

- name: Update .npmrc
run: |
Expand Down
5 changes: 3 additions & 2 deletions scripts/publish-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

set -e

npm i

echo "Installing playwright..."
npx playwright install

echo "Running build, lint, typecheck, and test..."
# Ensure that all public packages are in this list,
# otherwise they won't get built/linted/tested before being published
npx turbo run build lint typecheck test \
Expand All @@ -16,4 +16,5 @@ npx turbo run build lint typecheck test \
--filter=@audius/sdk \
--filter=@audius/spl \

echo "Publishing packages..."
npx changeset publish
2 changes: 2 additions & 0 deletions scripts/version-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

set -e

echo "Updating package versions..."
npx changeset version

# Update package-lock.json
echo "Updating package-lock.json..."
npm install --package-lock-only