diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbfbc23..d55174c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: - 'v*.*.*' jobs: - build-and-test: + build-test-release: runs-on: ubuntu-latest steps: @@ -32,32 +32,11 @@ jobs: - name: Build project run: pnpm run prepublish - release: - needs: build-and-test - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '18' - - - name: Install pnpm - run: | - corepack enable - corepack prepare pnpm@latest --activate - - - name: Install dependencies - run: pnpm install - - name: Create GitHub Release uses: softprops/action-gh-release@v1 with: files: | - react-dynamic-fonts/dist/** + dist/** env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -65,3 +44,5 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: pnpm publish --access public + +