Skip to content

Commit

Permalink
Add NPM publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kudinov committed Dec 1, 2023
1 parent dba0eef commit 61bb275
Show file tree
Hide file tree
Showing 52 changed files with 32 additions and 4,303 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish NPM package

on: [push]

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

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: echo ${{secrets.NPM_TOKEN}}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3 changes: 0 additions & 3 deletions build/main/index.d.ts

This file was deleted.

31 changes: 0 additions & 31 deletions build/main/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions build/main/lib/case.d.ts

This file was deleted.

39 changes: 0 additions & 39 deletions build/main/lib/case.js

This file was deleted.

18 changes: 0 additions & 18 deletions build/main/lib/constants.d.ts

This file was deleted.

25 changes: 0 additions & 25 deletions build/main/lib/constants.js

This file was deleted.

27 changes: 0 additions & 27 deletions build/main/lib/eventEmitter.d.ts

This file was deleted.

42 changes: 0 additions & 42 deletions build/main/lib/eventEmitter.js

This file was deleted.

3 changes: 0 additions & 3 deletions build/main/lib/logger.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions build/main/lib/logger.js

This file was deleted.

12 changes: 0 additions & 12 deletions build/main/lib/platformDetector.d.ts

This file was deleted.

34 changes: 0 additions & 34 deletions build/main/lib/platformDetector.js

This file was deleted.

Loading

0 comments on commit 61bb275

Please sign in to comment.