forked from duckdb/duckdb-wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 1.02 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: 'publish package'
on:
push:
branches:
- main
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- uses: actions/checkout@v3
with:
submodules: true
ref: 'feat/devrev-duckdb-version-v1.27.1-dev-115.0'
- uses: actions/setup-node@v3
with:
node-version: 18.17
registry-url: https://npm.pkg.github.com/
scope: '@devrev'
- run: npm install -g yarn
- name: publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_PUBLISH_TOKEN }}
run: |
git submodule init
git submodule update
cd packages/duckdb-wasm
echo "//npm.pkg.github.com/:_authToken=${{secrets.NPM_PACKAGE_PUBLISH_TOKEN}}" >> .npmrc
npm publish