Skip to content

Commit

Permalink
fix: update workspace path variable and increment version to 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Nov 3, 2024
1 parent 28f4988 commit f46e1a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ runs:
WORKFLOWREF: ${{ github.workflow_ref }}
REPO: ${{ github.repository }}
run: |
npm run ci -- --gh-token "$GITHUB_TOKEN" --package "$PACKAGE" --dist-tag "$DISTTAG" --workflow-ref "$WORKFLOWREF" --ci-workspace-path "/tmp" --ci-action-path "$CI_ACTION_PATH" --repo "$REPO"
npm run ci -- --gh-token "$GITHUB_TOKEN" --package "$PACKAGE" --dist-tag "$DISTTAG" --workflow-ref "$WORKFLOWREF" --ci-workspace-path "$CI_WORKSPACE_PATH" --ci-action-path "$CI_ACTION_PATH" --repo "$REPO"
shell: bash
working-directory: ${{ github.action_path }}
- name: Remember the dist tag data
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsdelivr-purge-npm",
"version": "1.0.4",
"version": "1.0.5",
"repository": {
"type": "git",
"url": "https://github.com/List-KR/jsdelivr-purge-npm"
Expand Down
1 change: 1 addition & 0 deletions sources/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class FileManager {
'user-agent': 'jsdelivr-purge-npm'
}
}).buffer()
Fs.mkdirSync(this.WorkPath, { recursive: true })
Fs.writeFileSync(`${this.WorkPath}/${this.Repo}-${Version}.tgz`, TarFile)
Fs.mkdirSync(`${this.WorkPath}/${this.Repo}-${Version}`, { recursive: true })
await Tar.extract({ file: `${this.WorkPath}/${this.Repo}-${Version}.tgz`, cwd: `${this.WorkPath}/${this.Repo}-${Version}` })
Expand Down

0 comments on commit f46e1a3

Please sign in to comment.