-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version in package.json for each project is the source of truth
- Loading branch information
1 parent
4ea5114
commit 9a8311e
Showing
30 changed files
with
544 additions
and
66 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name: 'Verify Pull Request' | |
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- release-* | ||
|
||
permissions: | ||
|
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import fs from 'fs/promises' | ||
import path from 'path' | ||
import sh from 'shelljs' | ||
import pkg from '../package.json' | ||
|
||
async function run() { | ||
const projectRoot = path.join(__dirname, '../') | ||
process.chdir(projectRoot) | ||
|
||
await fs.writeFile( | ||
path.join(projectRoot, 'extension.yaml'), | ||
` | ||
Id: PlayniteWeb_ec3439e3-51ee-43cb-9a8a-5d82cf45edac | ||
Name: Playnite Web | ||
Author: Andrew Smith | ||
Module: PlayniteWeb.dll | ||
Type: GenericPlugin | ||
Icon: Resources\\icon.png | ||
Version: ${pkg.version} | ||
`, | ||
'utf8', | ||
) | ||
|
||
sh.exec(`msbuild PlayniteWeb.csproj -property:Configuration=Release`) | ||
} | ||
|
||
run() |
This file was deleted.
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 was deleted.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import path from 'path' | ||
import sh from 'shelljs' | ||
import { getDockerTags } from 'versioning' | ||
import pkg from '../package.json' | ||
|
||
async function run() { | ||
const projectRoot = path.join(__dirname, '../') | ||
process.chdir(projectRoot) | ||
|
||
sh.cp('-R', '.dist/', '_packaged/') | ||
|
||
const { REGISTRY, OWNER, GITHUB_REF } = process.env | ||
|
||
if (!REGISTRY || !OWNER || !GITHUB_REF) { | ||
throw new Error('Missing environment variables') | ||
} | ||
|
||
let tags = await getDockerTags(pkg.version, GITHUB_REF) | ||
|
||
for (const tag of tags) { | ||
sh.exec( | ||
`docker build --tag "${REGISTRY}/${OWNER}/playnite-web-game-db-updater:${tag}" -file Dockerfile .`, | ||
) | ||
} | ||
} | ||
|
||
run() |
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import sh from 'shelljs' | ||
import { getDockerTags } from 'versioning' | ||
import pkg from '../package.json' | ||
|
||
async function run() { | ||
const { REGISTRY, OWNER, GITHUB_REF } = process.env | ||
|
||
if (!REGISTRY || !OWNER || !GITHUB_REF) { | ||
throw new Error('Missing environment variables') | ||
} | ||
|
||
let tags = await getDockerTags(pkg.version, GITHUB_REF) | ||
|
||
for (const tag of tags) { | ||
sh.exec( | ||
`docker push "${REGISTRY}/${OWNER}/playnite-web-game-db-updater:${tag}"`, | ||
) | ||
} | ||
} | ||
|
||
run() |
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,13 +1,19 @@ | ||
{ | ||
"name": "gh-action-runner", | ||
"version": "3.1.0", | ||
"version": "3.1.4", | ||
"sideEffects": false, | ||
"devDependencies": { | ||
"@types/shelljs": "^0.8.15", | ||
"concurrently": "^8.2.2", | ||
"cross-env": "^7.0.3", | ||
"esbuild": "^0.17.3", | ||
"esbuild-register": "^3.4.2", | ||
"glob": "^10.3.10", | ||
"nx": "19.1.1", | ||
"rimraf": "^5.0.5", | ||
"typescript": "^5.3.2" | ||
"shelljs": "^0.8.5", | ||
"ts-jest": "^29.0.5", | ||
"typescript": "^5.3.2", | ||
"versioning": "workspace:*" | ||
} | ||
} |
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 was deleted.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import path from 'path' | ||
import sh from 'shelljs' | ||
import { getDockerTags } from 'versioning' | ||
import pkg from '../package.json' | ||
|
||
async function run() { | ||
const projectRoot = path.join(__dirname, '../') | ||
process.chdir(projectRoot) | ||
|
||
const { REGISTRY, OWNER, GITHUB_REF } = process.env | ||
|
||
if (!REGISTRY || !OWNER || !GITHUB_REF) { | ||
throw new Error('Missing environment variables') | ||
} | ||
|
||
let tags = await getDockerTags(pkg.version, GITHUB_REF) | ||
|
||
for (const tag of tags) { | ||
sh.exec( | ||
`docker build --tag "${REGISTRY}/${OWNER}/playnite-gh-action-runner:${tag}" -file Dockerfile .`, | ||
) | ||
} | ||
} | ||
|
||
run() |
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import sh from 'shelljs' | ||
import { getDockerTags } from 'versioning' | ||
import pkg from '../package.json' | ||
|
||
async function run() { | ||
const { REGISTRY, OWNER, GITHUB_REF } = process.env | ||
|
||
if (!REGISTRY || !OWNER || !GITHUB_REF) { | ||
throw new Error('Missing environment variables') | ||
} | ||
|
||
let tags = await getDockerTags(pkg.version, GITHUB_REF) | ||
|
||
for (const tag of tags) { | ||
sh.exec( | ||
`docker push "${REGISTRY}/${OWNER}/playnite-web-gh-action-runner:${tag}"`, | ||
) | ||
} | ||
} | ||
|
||
run() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import path from 'path' | ||
import sh from 'shelljs' | ||
import { getDockerTags } from 'versioning' | ||
import pkg from '../package.json' | ||
|
||
async function run() { | ||
const projectRoot = path.join(__dirname, '../') | ||
process.chdir(projectRoot) | ||
|
||
sh.cp('-R', 'build/', '_packaged/') | ||
sh.cp('-R', 'public/', '_packaged/') | ||
sh.cp('-R', 'server.mjs/', '_packaged') | ||
sh.cp('-R', 'package.json', '_packaged') | ||
|
||
const { REGISTRY, OWNER, GITHUB_REF } = process.env | ||
|
||
if (!REGISTRY || !OWNER || !GITHUB_REF) { | ||
throw new Error('Missing environment variables') | ||
} | ||
|
||
let tags = await getDockerTags(pkg.version, GITHUB_REF) | ||
|
||
for (const tag of tags) { | ||
sh.exec( | ||
`docker build --tag "${REGISTRY}/${OWNER}/playnite-web-app:${tag}" -file Dockerfile .`, | ||
) | ||
} | ||
} | ||
|
||
run() |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import sh from 'shelljs' | ||
import { getDockerTags } from 'versioning' | ||
import pkg from '../package.json' | ||
|
||
async function run() { | ||
const { REGISTRY, OWNER, GITHUB_REF } = process.env | ||
|
||
if (!REGISTRY || !OWNER || !GITHUB_REF) { | ||
throw new Error('Missing environment variables') | ||
} | ||
|
||
let tags = await getDockerTags(pkg.version, GITHUB_REF) | ||
|
||
for (const tag of tags) { | ||
sh.exec(`docker push "${REGISTRY}/${OWNER}/playnite-web-app:${tag}"`) | ||
} | ||
} | ||
|
||
run() |
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,5 +1,5 @@ | ||
{ | ||
"version": "3.1.4", | ||
"packages": ["apps/*", "libs/**/*"], | ||
"packages": ["apps/*"], | ||
"npmClient": "yarn" | ||
} |
Oops, something went wrong.