Skip to content

Commit 93c2d57

Browse files
committed
Get the package ready for publishing
* Bump major version * Add the publish job in the CI/CD workflow
1 parent 5fb1992 commit 93c2d57

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,27 @@ jobs:
2727
uses: actions/setup-node@v3
2828

2929
- name: Compile
30-
run: yarn && yarn test
30+
run: yarn && yarn test
31+
32+
publish:
33+
needs:
34+
- compile
35+
- test
36+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- name: Checkout repo
41+
uses: actions/checkout@v4
42+
43+
- name: Set up node
44+
uses: actions/setup-node@v3
45+
- name: Install dependencies
46+
run: yarn install --frozen-lockfile --non-interactive
47+
48+
- name: Build
49+
run: yarn build
50+
- name: Publish
51+
run: yarn publish --access public --no-git-tag-version --tag latest
52+
env:
53+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/sdk",
3-
"version": "1.7.1",
3+
"version": "2.0.0",
44
"private": false,
55
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
66
"type": "commonjs",
@@ -39,17 +39,17 @@
3939
"test:wire": "jest --selectProjects wire"
4040
},
4141
"devDependencies": {
42-
"webpack": "^5.97.1",
43-
"ts-loader": "^9.5.1",
44-
"jest": "^29.7.0",
4542
"@jest/globals": "^29.7.0",
4643
"@types/jest": "^29.5.14",
47-
"ts-jest": "^29.3.4",
44+
"@types/node": "^18.19.70",
45+
"jest": "^29.7.0",
4846
"jest-environment-jsdom": "^29.7.0",
4947
"msw": "^2.8.4",
50-
"@types/node": "^18.19.70",
5148
"prettier": "^3.4.2",
52-
"typescript": "~5.7.2"
49+
"ts-jest": "^29.3.4",
50+
"ts-loader": "^9.5.1",
51+
"typescript": "~5.7.2",
52+
"webpack": "^5.97.1"
5353
},
5454
"browser": {
5555
"fs": false,

0 commit comments

Comments
 (0)