Skip to content

Commit d2274a3

Browse files
Create NPM Package before publishing (#9)
Create NPM Package before publishing
1 parent 12e2924 commit d2274a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,17 @@ jobs:
7676
- name: Install dependencies for Node
7777
run: npm install 2>&1 | tee npm-install.log
7878

79-
- name: Read version and package
79+
- name: Read version and package details
8080
run: |
8181
PACKAGE_NAME=$(npm pkg get name | sed -e 's/"//g')
8282
echo "PACKAGE_NAME=$PACKAGE_NAME" >> $GITHUB_ENV
8383
PACKAGE_FILENAME=${PACKAGE_NAME}-${{ github.event.inputs.release_version }}".tgz"
8484
echo "PACKAGE_FILENAME=$PACKAGE_FILENAME" >> $GITHUB_ENV
8585
86+
- name: Create package
87+
run: |
88+
npm pack --pack-destination ./
89+
8690
- name: Import GPG private key
8791
run: |
8892
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import --pinentry-mode loopback

0 commit comments

Comments
 (0)