Skip to content

Commit

Permalink
Merge pull request #7 from rokucommunity/ropm-prep
Browse files Browse the repository at this point in the history
Adds support for ropm publishing
  • Loading branch information
TwitchBronBron authored Sep 11, 2023
2 parents 2bc7609 + 62d7d48 commit 136e9c6
Show file tree
Hide file tree
Showing 7 changed files with 995 additions and 191 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,24 @@ jobs:
prerelease: false

#upload package to GitHub release
- name: Upload GitHub Release Assets
uses: alexellis/upload-assets@0.2.3
- name: Upload GitHub Release Assets (./dist code)
uses: alexellis/upload-assets@0.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./*.tgz", "./dist"]'
asset_paths: '["./dist/components/Promise.xml", "./dist/source/promises.brs", "./dist/source/promises.brs.map", "./dist/source/promises.d.bs"]'

- name: "Prepare package for ropm"
run: npx ts-node ./src/ropm-preprocess.ts

#upload to npm
- run: npm publish

#upload package to GitHub release
- name: Upload GitHub Release Assets (npm package)
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./*.tgz"]'

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ A Promise-like implementation for BrightScript/Roku. This is the core functional

## Installation
### ropm
The preferred installation method is via [ropm](https://www.npmjs.com/package/ropm);
The preferred installation method is via [ropm](https://www.npmjs.com/package/ropm)
```bash
ropm install @rokucommunity/promises
npx ropm install promises@npm:@rokucommunity/promises
```

### Manual install
1. Download the latest release from [releases](https://github.com/rokucommunity/promises/releases) and extract the zip.
2. Copy the files into your `pkg:/source` and `pkg:/components` folders. Your project structure should look something like this if you've done it correctly:
Expand Down
4 changes: 3 additions & 1 deletion bsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"rootDir": "./src",
"stagingDir": "./dist"
"stagingDir": "./dist",
"emitDefinitions": true,
"sourceMap": true
}
Loading

0 comments on commit 136e9c6

Please sign in to comment.