File tree Expand file tree Collapse file tree 2 files changed +12
-53
lines changed
Expand file tree Collapse file tree 2 files changed +12
-53
lines changed Original file line number Diff line number Diff line change 1- name : CI
2-
3- on : [push, pull_request]
4-
5- permissions :
6- contents : read
7-
1+ name : Node.js Package
2+ on : [push]
83jobs :
94 build :
105 runs-on : ubuntu-latest
11- services :
12- postgres :
13- image : postgres:11
14- env :
15- POSTGRES_USER : postgres
16- POSTGRES_PASSWORD : postgres
17- POSTGRES_DB : ci_db_test
18- POSTGRES_HOST_AUTH_METHOD : ' md5'
19- ports :
20- - 5432:5432
21- options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
22- strategy :
23- matrix :
24- node : ['18']
25- os : [ubuntu-latest]
26- name : Node.js ${{ matrix.node }} (${{ matrix.os }})
27- env :
28- PGUSER : postgres
29- PGHOST : localhost
30- PGPASSWORD : postgres
31- PGDATABASE : ci_db_test
32- PGTESTNOSSL : ' true'
33- SCRAM_TEST_PGUSER : scram_test
34- SCRAM_TEST_PGPASSWORD : test4scram
356 steps :
36- - run : |
37- psql \
38- -c "SET password_encryption = 'scram-sha-256'" \
39- -c "CREATE ROLE scram_test LOGIN PASSWORD 'test4scram'"
40- - uses : actions/checkout@v3
41- with :
42- persist-credentials : false
43- - name : Setup node
44- uses : actions/setup-node@v3
7+ - uses : actions/checkout@v2
8+ # Setup .npmrc file to publish to npm
9+ - uses : actions/setup-node@v2
4510 with :
46- node-version : ${{ matrix.node }}
47- cache : yarn
48- - run : yarn install
49- # TODO(bmc): get ssl tests working in ci
50- - run : yarn test
11+ node-version : ' 14.x'
12+ registry-url : ' https://registry.npmjs.org'
13+ - run : npm install
14+ - run : npm publish
15+ env :
16+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
Original file line number Diff line number Diff line change 1717 " packages/*"
1818 ],
1919 "scripts" : {
20- "test" : " yarn lerna exec yarn test" ,
21- "build" : " tsc --build" ,
22- "build:watch" : " tsc --build --watch" ,
23- "docs:build" : " cd docs && yarn build" ,
24- "docs:start" : " cd docs && yarn start" ,
25- "pretest" : " yarn build" ,
26- "prepublish" : " yarn build" ,
27- "lint" : " eslint '*/**/*.{js,ts,tsx}'"
20+
2821 },
2922 "devDependencies" : {
3023 "@types/chai" : " ^4.3.5" ,
You can’t perform that action at this time.
0 commit comments