Skip to content

Commit dd91f85

Browse files
author
Calvin Allen
committed
Initial Release
1 parent 20a5e89 commit dd91f85

14 files changed

Lines changed: 1799 additions & 455 deletions

CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

LICENSE

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
1-
21
The MIT License (MIT)
32

4-
Copyright (c) 2018 GitHub, Inc. and contributors
3+
Copyright © 2023 Calvin A. Allen
54

6-
Permission is hereby granted, free of charge, to any person obtaining a copy
7-
of this software and associated documentation files (the "Software"), to deal
8-
in the Software without restriction, including without limitation the rights
9-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
copies of the Software, and to permit persons to whom the Software is
11-
furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
126

13-
The above copyright notice and this permission notice shall be included in
14-
all copies or substantial portions of the Software.
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
158

16-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22-
THE SOFTWARE.
9+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

__tests__/main.test.ts

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,8 @@
1-
import {wait} from '../src/wait'
21
import * as process from 'process'
32
import * as cp from 'child_process'
43
import * as path from 'path'
54
import {expect, test} from '@jest/globals'
65

7-
test('throws invalid number', async () => {
8-
const input = parseInt('foo', 10)
9-
await expect(wait(input)).rejects.toThrow('milliseconds not a number')
10-
})
11-
12-
test('wait 500 ms', async () => {
13-
const start = new Date()
14-
await wait(500)
15-
const end = new Date()
16-
var delta = Math.abs(end.getTime() - start.getTime())
17-
expect(delta).toBeGreaterThan(450)
18-
})
19-
20-
// shows how the runner will run a javascript action with env / stdout protocol
21-
test('test runs', () => {
22-
process.env['INPUT_MILLISECONDS'] = '500'
23-
const np = process.execPath
24-
const ip = path.join(__dirname, '..', 'lib', 'main.js')
25-
const options: cp.ExecFileSyncOptions = {
26-
env: process.env
27-
}
28-
console.log(cp.execFileSync(np, [ip], options).toString())
29-
})
6+
test('true', async () => {
7+
expect(true).toBeTruthy();
8+
});

action-types.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
inputs:
2+
marketplace-pat:
3+
type: string
4+
publish-manifest-path:
5+
type: string
6+
vsix-path:
7+
type: string
8+
vs-version:
9+
type: string
10+
vs-prerelease:
11+
type: boolean

action.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
1-
name: 'Your name here'
2-
description: 'Provide a description here'
3-
author: 'Your name or organization here'
1+
name: 'Visual Studio Marketplace Publisher'
2+
description: 'Public your Visual Studio extensions to the marketplace with ease!'
3+
author: 'Coding with Calvin'
4+
branding:
5+
color: purple
6+
icon: upload-cloud
47
inputs:
5-
milliseconds: # change this
8+
marketplace-pat:
69
required: true
7-
description: 'input description here'
8-
default: 'default value if applicable'
10+
description: 'Your personal access token for the Marketplace'
11+
default: '${{ secrets.VS_PAT }}'
12+
publish-manifest-path:
13+
required: true
14+
description: 'Relative path to your publish manifest'
15+
default: './src/extension.manifest.json'
16+
vsix-path:
17+
required: true
18+
description: 'Relative path to your VSIX file'
19+
default: './output/extension.vsix'
20+
vs-version:
21+
description: 'Version of Visual Studio to search; defaults to latest if not specified'
22+
required: false
23+
vs-prerelease:
24+
description: 'Enable searching for pre-release versions of Visual Studio'
25+
required: false
926
runs:
1027
using: 'node16'
1128
main: 'dist/index.js'

0 commit comments

Comments
 (0)