Skip to content

Commit 7f89a0c

Browse files
chore: update workflow for npm publish
1 parent ee5d762 commit 7f89a0c

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [feat/2326-npm-publish]
66

77
jobs:
88
build:
@@ -41,6 +41,7 @@ jobs:
4141
uses: JS-DevTools/npm-publish@v3
4242
with:
4343
token: ${{ secrets.NPM_TOKEN }}
44+
access: public # Uncomment this line if you want to publish the package as public for first time
4445

4546
# Auto-tag the new version if a change is detected
4647
- name: Auto-tag new version
@@ -71,6 +72,6 @@ jobs:
7172
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7273
with:
7374
upload_url: ${{ steps.create_release.outputs.upload_url }}
74-
asset_path: "./${{ steps.package.outputs.name }}-${{ steps.package.outputs.version }}.tgz"
75-
asset_name: "${{ steps.package.outputs.name }}-${{ steps.package.outputs.version }}.tgz"
76-
asset_content_type: application/gzip
75+
asset_path: "./contentstack-datasync-mongodb-sdk-${{ steps.package.outputs.version }}.tgz"
76+
asset_name: "contentstack-datasync-mongodb-sdk-${{ steps.package.outputs.version }}.tgz"
77+
asset_content_type: application/tgz

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Contentstack Ecosystem <[email protected]>",
3-
"name": "datasync-mongodb-sdk",
4-
"version": "1.0.9",
3+
"name": "@contentstack/datasync-mongodb-sdk",
4+
"version": "1.0.9-beta.1",
55
"description": "Mongodb query wrapper around contents synced via @contentstack/content-store-mongodb",
66
"main": "dist/index.js",
77
"scripts": {

0 commit comments

Comments
 (0)