Skip to content

Commit 07e6e53

Browse files
committed
WIP: Github action
1 parent d545519 commit 07e6e53

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
on: [push]
3+
4+
jobs:
5+
publish:
6+
name: Publish
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version: 16.x
13+
- run: yarn install
14+
- run: yarn npm:prepublish
15+
- name: Set the package name
16+
run: npm pkg set --workspace packages/server name=@deepnote/sql-language-server
17+
- name: Configure github packages npm repository
18+
run: |
19+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
20+
echo "@deepnote:registry=https://npm.pkg.github.com" >> ~/.npmrc
21+
- name: Set package version
22+
run: npm version --workspace packages/server 1.3.0-pre-${{ github.sha }}
23+
- name: Publish
24+
run: |
25+
npm publish --workspace packages/server
26+
27+

0 commit comments

Comments
 (0)