Skip to content

Commit

Permalink
Fix publish workflow (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Oct 5, 2022
1 parent 411ba73 commit 7edf449
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,16 @@ on:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn && yarn build
- run: yarn lint

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: yarn --frozen-lockfile
- run: yarn build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
/lib
/docs
dist
docs

.env
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@cowprotocol/ts-dune-client",
"version": "0.0.0-beta.0",
"version": "0.0.0-beta.1",
"author": "Ben Smith <[email protected]>",
"description": "Node Client for Dune Analytics' officially supported API.",
"repository": "[email protected]:cowprotocol/ts-dune-client.git",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"lib"
"dist"
],
"scripts": {
"build": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"module": "CommonJS",
"moduleResolution": "node",
"declaration": true,
"outDir": "./lib",
"outDir": "dist",
"strict": true
},
"include": ["src"],
Expand Down

0 comments on commit 7edf449

Please sign in to comment.