From cebf376bd56751ec3be2c01154e4c4129e1e5bd7 Mon Sep 17 00:00:00 2001 From: lostfields Date: Tue, 7 Apr 2020 13:56:20 +0200 Subject: [PATCH] adding readme + fixing release --- .github/workflows/release.yml | 45 ++++++++++++++++++++--------------- .npmignore | 5 ++++ README.md | 3 +++ package.json | 2 +- 4 files changed, 35 insertions(+), 20 deletions(-) create mode 100644 .npmignore create mode 100644 README.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 06eebb6..f71a92f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,8 @@ jobs: npm test npm run lint npm run build + rm lib/linq/peg/parser/*.d.ts + rm lib/linq/peg/parser/*.map zip -r artifact lib src package.json index.html LICENSE README.md env: CI: true @@ -45,27 +47,32 @@ jobs: run: | npm ci npm run build + rm lib/linq/peg/parser/*.d.ts + rm lib/linq/peg/parser/*.map npm publish --access public --@tfso:registry=https://registry.npmjs.org/ env: CI: true NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - # publish-gpr: - # name: publish npm to github - # if: "!github.event.release.prerelease" # https://developer.github.com/v3/activity/events/types/#releaseevent - # needs: build - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - uses: actions/setup-node@v1 - # with: - # node-version: 12 - # registry-url: https://npm.pkg.github.com/ - # scope: "@tfso" - # - name: publish - # run: | - # npm ci - # npm run build - # npm publish - # env: - # NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + publish-gpr: + name: publish npm to github + if: "!github.event.release.prerelease" # https://developer.github.com/v3/activity/events/types/#releaseevent + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + scope: "@tfso" + - name: publish + run: | + npm ci + npm run build + rm lib/linq/peg/parser/*.d.ts + rm lib/linq/peg/parser/*.map + npm publish + env: + CI: true + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..a942835 --- /dev/null +++ b/.npmignore @@ -0,0 +1,5 @@ +.github +.eslintrc.json +js-enumerable.code-workspace +tsconfig.json +webpack.config.js \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..09f4ae4 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# js-enumerable + +![build](https://github.com/tfso/js-enumerable/workflows/build/badge.svg?branch=master) \ No newline at end of file diff --git a/package.json b/package.json index 0711590..526b803 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tfso/js-enumerable", - "version": "0.0.5", + "version": "0.0.6", "description": "", "main": "lib/index.js", "typings": "lib/index",