Skip to content

Commit be52417

Browse files
committed
use release assets
1 parent b44514e commit be52417

File tree

4 files changed

+23
-47
lines changed

4 files changed

+23
-47
lines changed
Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Test
22
on:
33
push:
4-
pull_request:
54

65
jobs:
76
lint:
@@ -35,3 +34,24 @@ jobs:
3534
- run: pnpm install --frozen-lockfile
3635
- run: pnpm build
3736
- run: pnpm test
37+
release:
38+
runs-on: ubuntu-latest
39+
if: startsWith(github.ref, 'refs/tags/')
40+
needs:
41+
- test
42+
steps:
43+
- uses: actions/checkout@v3
44+
- name: Enable Corepack
45+
run: corepack enable
46+
- uses: actions/setup-node@v3
47+
with:
48+
node-version: 20
49+
cache: pnpm
50+
- run: pnpm install --frozen-lockfile
51+
- run: pnpm build
52+
- name: Pack tarball
53+
run: mv "$(pnpm pack)" tsc-multi.tgz
54+
- name: Release
55+
uses: softprops/action-gh-release@v2
56+
with:
57+
files: tsc-multi.tgz

.github/workflows/npm-publish-github-packages.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@stainless-api/tsc-multi",
3-
"version": "1.1.1",
2+
"name": "tsc-multi",
3+
"version": "1.1.0",
44
"description": "Compile multiple TypeScript projects into multiple targets.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)