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
45 changes: 45 additions & 0 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Tag Release

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
env:
YARN_ENABLE_SCRIPTS: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Build packages
run: |
yarn install --immutable
yarn build

- name: Pack workspace tarballs
run: |
mkdir -p artifacts

for dir in packages/*/build; do
if [ -f "$dir/package.json" ]; then
npm pack "$dir" --pack-destination artifacts
fi
done

ls -la artifacts

- name: Upload assets to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: artifacts/*.tgz
Loading