Skip to content

Commit

Permalink
fix: simplifying publish (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhaticus authored Nov 5, 2024
1 parent 03298b2 commit 7ea2847
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ jobs:
run: npm audit signatures
- name: Build library
run: npm run build
- name: Prepare artifact
run: |
mkdir -p ./lib/lib &&
find ./lib -mindepth 1 -maxdepth 1 ! -name "lib" -exec mv {} ./lib/lib/ \;
cp -r .git/ package.json README.md LICENSE ./lib
- uses: actions/upload-artifact@v4
with:
name: lib
Expand All @@ -50,15 +45,22 @@ jobs:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
package.json
README.md
LICENSE
sparse-checkout-cone-mode: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: actions/download-artifact@v4
with:
name: lib
path: ./
path: ./lib
- name: Publish library
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 7ea2847

Please sign in to comment.