Skip to content

Commit 7002cb8

Browse files
committed
chore: prepare for beta release
fixes: https://contentstack.atlassian.net/browse/CS-36314
1 parent ac4010e commit 7002cb8

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This workflow will run tet using node and then publish a beta version of the package in the NPM and GitHub registry
2+
3+
name: Beta release
4+
5+
on:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 14
16+
- run: npm ci
17+
- run: npm test
18+
name: Build and test
19+
20+
publish-gpr:
21+
needs: build
22+
runs-on: ubuntu-latest
23+
permissions:
24+
contents: read
25+
packages: write
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-node@v3
29+
with:
30+
node-version: 14
31+
registry-url: https://npm.pkg.github.com/
32+
- run: npm ci
33+
- run: npm publish --tag beta
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
36+
name: Publish to GitHub
37+
38+
publish-npm:
39+
needs: build
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v2
43+
- uses: actions/setup-node@v2
44+
with:
45+
node-version: 16
46+
registry-url: https://registry.npmjs.org/
47+
- run: npm ci
48+
- run: npm publish --tag beta
49+
env:
50+
NODE_AUTH_TOKEN: ${{secrets.APP_SDK_AUTOMATION}}
51+
name: Publish to NPM
52+
53+
54+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/app-sdk",
3-
"version": "1.3.0",
3+
"version": "1.4.0-beta.0",
44
"types": "dist/src/index.d.ts",
55
"description": "This SDK helps connect to the development server of the Contentstack and sync the data.",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)