Skip to content

Commit

Permalink
ci(release): release typings and hooks
Browse files Browse the repository at this point in the history
I hope this works
  • Loading branch information
itschip committed Jan 10, 2024
1 parent 7026923 commit 70562c5
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/tagged-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,58 @@ jobs:
-H "Content-Type: application/octet-stream" \
"https://uploads.github.com/repos/project-error/npwd/releases/${{ steps.auto_release.outputs.release_id }}/assets?name=npwd.zip" \
--data-binary "@npwd.zip"
build-npwd-packages:
name: Build NPWD packages
runs-on: ubuntu-latest
needs: create-tagged-release

steps:
- name: Get tag
run: echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}
id: get_tag
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 7.29.1
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm i --frozen-lockfile

# Build all packages
- name: Build @npwd/types
run: |
pnpm generate:typings
cd ./packages/npwd-types
git config user.email "[email protected]"
git config user.name "itschip"
pnpm version --new-version ${{ steps.get_tag.outputs.release_tag }}
- name: Release @npwd/types
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: './packages/npwd-types/package.json'
access: 'public'

- name: Build @npwd/hooks
run: |
cd ./packages/npwd-hooks
pnpm build
git config user.email "[email protected]"
git config user.name "itschip"
pnpm version --new-version ${{ steps.get_tag.outputs.release_tag }}
- name: Release @npwd/hooks
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: './packages/npwd-hooks/package.json'
access: 'public'

0 comments on commit 70562c5

Please sign in to comment.