Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,46 +28,3 @@ jobs:
- run: npm run lint
- run: npm run test
- run: npm run publish-coverage
npm-release:
#only run this task if a tag starting with 'v' was used to trigger this (i.e. a tagged release)
if: startsWith(github.ref, 'refs/tags/v')
needs: ci
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "14.18.1"
architecture: 'x64' # fix for macos-latest
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./.npmrc
- run: npm ci
- run: npm run build
#create npm package
- run: npm pack

#create GitHub release
- name: Create GitHub Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false #contains(github.ref, '-beta.') == true

#upload package to GitHub release
- name: Upload GitHub Release Assets
uses: alexellis/upload-assets@0.2.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./*.tgz"]'

#If there's a dash followed by an alpha character, this is a prerelease and should be tagged "next". Otherwise tag as "latest"
- run: if [[ "${{ github.ref }}" =~ -[a-zA-Z] ]]; then echo "DIST_TAG=next" >> $GITHUB_ENV; else echo "DIST_TAG=latest" >> $GITHUB_ENV; fi
#upload to npm
- run: npm publish --tag ${{env.DIST_TAG}}
25 changes: 25 additions & 0 deletions .github/workflows/make-release-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Make Release Artifacts

on:
pull_request:
types:
- reopened
- opened
- synchronize

jobs:
run:
if: startsWith( github.head_ref, 'release/')
uses: rokucommunity/workflows/.github/workflows/make-release-artifacts.yml@master
with:
branch: ${{ github.event.pull_request.head.ref }}
node-version: "14.18.1"
artifact-paths: "./*.tgz" # "*.vsix"
secrets: inherit

success-or-skip:
if: always()
needs: [run]
runs-on: ubuntu-latest
steps:
- run: if [ "${{ needs.run.result }}" = "failure" ]; then exit 1; fi
18 changes: 18 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Release

on:
pull_request:
types:
- closed
paths:
- 'package.json'
- 'package-lock.json'

jobs:
run:
if: startsWith( github.head_ref, 'release/') && (github.event.pull_request.merged == true)
uses: rokucommunity/workflows/.github/workflows/publish-release.yml@master
with:
release-type: "npm" # "vsce"
ref: ${{ github.event.pull_request.merge_commit_sha }}
secrets: inherit
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.vscode
.git
.github
.nyc_output
coverage
dist/*.spec.*
Expand All @@ -12,3 +13,4 @@ rokudeploy.json
tsconfig.json
.eslintrc.js
*.tgz
*.map
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



## [3.12.5](https://github.com/rokucommunity/roku-deploy/compare/3.12.4...v3.12.5) - 2025-05-05
### Changed
- (chore) Add missing template workflows for shared ci ([#189](https://github.com/rokucommunity/roku-deploy/pull/189))
- (chore) Shared CI Support Prerelease ([#185](https://github.com/rokucommunity/roku-deploy/pull/185))



## [3.12.4](https://github.com/rokucommunity/roku-deploy/compare/v3.12.3...v3.12.4) - 2025-01-22
### Fixed
- fixed an issue with `577` error codes ([#182](https://github.com/rokucommunity/roku-deploy/pull/182))
Expand Down
6 changes: 2 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"test:device": "nyc mocha src/device.spec.ts",
"test:all": "nyc mocha \"src/**/*.spec.ts\"",
"test-without-sourcemaps": "npm run build && nyc mocha dist/**/*.spec.js",
"publish-coverage": "nyc report --reporter=text-lcov | coveralls"
"publish-coverage": "nyc report --reporter=text-lcov | coveralls",
"package": "npm run build && npm pack"
},
"dependencies": {
"@rokucommunity/logger": "^0.3.10",
Expand Down