Skip to content

Commit 07442d4

Browse files
authored
ci: added deploy step (#4)
2 parents 744f0bd + 0aec5a4 commit 07442d4

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,20 @@ jobs:
4242
run: yarn test
4343
env:
4444
CI: true
45+
46+
deploy:
47+
runs-on: ubuntu-latest
48+
49+
needs: [test, lint]
50+
if: github.ref == 'refs/heads/main'
51+
52+
steps:
53+
- uses: actions/checkout@v2
54+
- name: Use Node.js
55+
uses: actions/setup-node@v1
56+
- name: Build
57+
run: yarn build
58+
- uses: JS-DevTools/npm-publish@v1
59+
with:
60+
registry: https://npm.pkg.github.com
61+
token: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "apollo-gateway",
2+
"name": "@module-federation/apollo-gateway",
33
"version": "1.0.0",
44
"main": "dist/cjs/index.js",
55
"module": "dist/esm/index.js",

0 commit comments

Comments
 (0)