Skip to content

Commit

Permalink
Fix(Github Actions): Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Aug 7, 2023
1 parent a4bdcfe commit abfa3d4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
6 changes: 3 additions & 3 deletions packages/github-actions/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:19-alpine AS base
FROM node:19-alpine

RUN npm i -g pnpm
ADD package.json /action/
RUN cd /action && pnpm i
RUN cd /action && npm i

ADD src /action/src
ENTRYPOINT ["node", "/action/src/index.js"]
Z
4 changes: 2 additions & 2 deletions packages/github-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"techor-conventional-commits": "workspace:^",
"conventional-changelog-techor": "workspace:^",
"techor-conventional-commits": "",
"conventional-changelog-techor": "",
"conventional-changelog-conventionalcommits": "^5.0.0",
"conventional-commits-parser": "^3.2.4"
}
Expand Down
2 changes: 0 additions & 2 deletions packages/techor/src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ program.command('version <version>')
.option('-p, --prefix <symbol>', 'Version prefix `^`, `~`, `>`, `>=`, `<`, `<=` ', '^')
.option('-w, --workspaces <paths>', 'Specific your workspaces')
.option('-ls, --list', 'List current bumpable dependency tree in workspaces', false)
.option('--no-private', 'Off: Bump private project version')
.option('--no-public', 'Off: Bump public project version')
.action(async function (args, options) {
try {
const action = require('@techor/version/actions/main')
Expand Down
5 changes: 0 additions & 5 deletions packages/version/src/actions/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,10 @@ module.exports = function action(version: string, options) {
for (const eachPackagePath of explorePathsSync(workspacePackagePaths)) {
const eachPackage = readJSONFileSync(path.resolve(eachPackagePath))
// Prevent version bumps of private package
if (
eachPackage.private && (options.private) ||
!eachPackage.private && (options.public)
) {
packagesOfPath[eachPackagePath] = eachPackage
packagesOfName[eachPackage.name] = eachPackage
// Bump to next verion
eachPackage.version = version
}
}

for (const eachPackagePath in packagesOfPath) {
Expand Down
20 changes: 16 additions & 4 deletions pnpm-lock.yaml

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

0 comments on commit abfa3d4

Please sign in to comment.