-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Stremio/ci/prepare-v1-and-v2-releases
Ci/prepare v1 and v2 releases
- Loading branch information
Showing
8 changed files
with
106 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,27 +3,28 @@ name: Publish | |
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
# FIXME: needs a running server locally for the local-addon | ||
# publish-v1: | ||
# if: ${{ startsWith(github.event.release.tag_name, 'v1') }} | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - name: Setup NodeJS | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: 20 | ||
# cache: 'npm' | ||
# registry-url: https://registry.npmjs.org/ | ||
# - name: Install NPM dependencies | ||
# run: npm ci | ||
# - name: Publish to NPM | ||
# run: npm publish --workspace stremio-official-addons --access public | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
publish-v1: | ||
if: ${{ startsWith(github.event.release.tag_name, 'v1') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup NodeJS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'npm' | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Install NPM dependencies | ||
run: npm ci | ||
# At this point, the index.json is manually updated and committed for v1 | ||
# No need to generate the addons list | ||
- name: Publish to NPM | ||
run: npm publish --workspace stremio-official-addons --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
||
publish-v2: | ||
if: ${{ startsWith(github.event.release.tag_name, 'v2') }} | ||
|
@@ -41,13 +42,13 @@ jobs: | |
uses: dtolnay/[email protected] | ||
- name: Install NPM dependencies | ||
run: npm ci | ||
- name: Build | ||
- name: Build addons list | ||
run: npm run --workspace official-addons-v2 build | ||
- name: Publish to NPM | ||
run: npm publish --workspace official-addons-v2 --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
- name: Publish to crates.io | ||
- name: Build and publish crate to crates.io | ||
run: cargo publish -p stremio-official-addons --allow-dirty --token "$CARGO_AUTH_TOKEN" | ||
env: | ||
CARGO_AUTH_TOKEN: ${{ secrets.CRATES_IO_PUBLISH_TOKEN }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "stremio-official-addons", | ||
"version": "1.5.5", | ||
"version": "1.5.6", | ||
"description": "All the stremio official add-ons, in AddonCollection.load() format", | ||
"main": "index.js", | ||
"scripts": { | ||
|
@@ -20,7 +20,7 @@ | |
"bugs": { | ||
"url": "https://github.com/Stremio/stremio-official-addons/issues" | ||
}, | ||
"homepage": "https://github.com/Stremio/stremio-official-addons#readme", | ||
"homepage": "https://stremio.com", | ||
"devDependencies": { | ||
"stremio-addon-client": "^1.5.2", | ||
"stremio-local-addon": "https://[email protected]/Stremio/stremio-local-addon#79cd88c32aa26270af8b662fa7bd92b657f6e14f" | ||
|