ignoring node modules

This commit is contained in:
Adam Brown 2022-08-24 15:15:26 +01:00
parent 5ce79bd2b8
commit cac4f8cedf
4 changed files with 14 additions and 6 deletions

View File

@ -26,6 +26,6 @@ jobs:
- uses: actions/github-script@v6
with:
script: |
const { script } = await import('${{ github.workspace }}/tools/beta-release/app.js')
await script({github, context, core})
const { startReleaseProcess } = await import('${{ github.workspace }}/tools/beta-release/app.js')
await startReleaseProcess({github, context, core})

2
.gitignore vendored
View File

@ -11,4 +11,4 @@
.cxx
local.properties
/benchmark-out
**/node_modules
/node_modules

View File

@ -46,8 +46,11 @@ android {
"proguard/serializationx.pro",
"proguard/olm.pro"
// actual releases are signed with a different config
signingConfig = buildTypes.debug.signingConfig
if (project.hasProperty("unsigned")) {
// releases are signed externally
} else {
signingConfig = buildTypes.debug.signingConfig
}
}
}

View File

@ -8,7 +8,7 @@ const config = {
const rcBranchName = "release-candidate"
export const script = async ({ github, context, core }) => {
export const startReleaseProcess = async ({ github, context, core }) => {
console.log("script start")
if (await doesNotHaveInProgressRelease(github) && await isWorkingBranchAhead(github)) {
await startRelease(github)
@ -18,6 +18,11 @@ export const script = async ({ github, context, core }) => {
return ""
}
export const publishRelease = async (github, artifact) => {
}
const isWorkingBranchAhead = async (github) => {
const result = await github.rest.repos.compareCommitsWithBasehead({
owner: config.owner,