Skip to content

Commit 90e919f

Browse files
Only pack necessary files
1 parent 21500a4 commit 90e919f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/release-workflow.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
118118
echo "PACKAGE_VERSION=$STRIPPED_VERSION" >> $GITHUB_ENV
119119
120-
jq --arg version "0.0.1" '.version = $version' package.json > tmp.$$.json && mv tmp.$$.json package.json
120+
jq --arg version "0.0.2" '.version = $version' package.json > tmp.$$.json && mv tmp.$$.json package.json
121121
122122
- name: Configure npm for GCP Artifact Registry
123123
run: |
@@ -127,5 +127,13 @@ jobs:
127127
- name: Refresh the access token for connecting to the repository
128128
run: npm run artifactregistry-login
129129

130-
- name: Publish JS package to Artifact Registry
130+
- name: Move build output to publish root
131+
run: |
132+
mkdir -p npm_publish
133+
cp -r gen/typescript/* npm_publish/
134+
cp package.json npm_publish/
135+
cp README.md npm_publish/ || true
136+
137+
- name: Publish JS package
138+
working-directory: npm_publish
131139
run: npm publish

0 commit comments

Comments
 (0)