Skip to content

Commit 59d8d98

Browse files
committed
Merge branch 'master' into v2
2 parents e4e25f0 + 21b5956 commit 59d8d98

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

__tests__/git.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('refExists', () => {
3030
test('returns true for existing refs', async () => {
3131
await execa('git', ['tag', 'a-tag']);
3232
expect(await git.refExists('HEAD')).toBe(true);
33-
expect(await git.refExists('master')).toBe(true);
33+
expect(await git.refExists('main')).toBe(true);
3434
expect(await git.refExists('a-tag')).toBe(true);
3535
});
3636

__tests__/helpers/git.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export async function initRepository(dir: string): Promise<void> {
66
fs.mkdirSync(dir);
77
}
88

9-
await execa('git', ['init'], { cwd: dir });
9+
await execa('git', ['init', '-b', 'main'], { cwd: dir });
1010
await execa('git', ['config', 'user.name', 'Test User'], { cwd: dir });
1111
await execa('git', ['config', 'user.email', '[email protected]'], { cwd: dir });
1212
await execa('git', ['commit', '--allow-empty', '-m', 'initial commit'], { cwd: dir });
@@ -15,5 +15,5 @@ export async function initRepository(dir: string): Promise<void> {
1515
export async function addAndTrackRemote(name: string, url: string): Promise<void> {
1616
await execa('git', ['remote', 'add', name, url]);
1717
await execa('git', ['fetch', '--all']);
18-
await execa('git', ['branch', '--set-upstream-to', `${name}/master`]);
18+
await execa('git', ['branch', '--set-upstream-to', `${name}/main`]);
1919
}

__tests__/helpers/scratch-directory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export function runTestsInScratchDirectory(): void {
1313

1414
afterEach(async () => {
1515
process.chdir(cwd);
16-
fs.rmdirSync(testDir, { recursive: true });
16+
fs.rmSync(testDir, { recursive: true, force: true });
1717
});
1818
}

__tests__/main.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('with a changed version', () => {
2525
test('creates a new tag', async () => {
2626
let result = await execa.node(`${__dirname}/../lib/main.js`, {
2727
env: {
28-
GITHUB_REF: 'master',
28+
GITHUB_REF: 'main',
2929
},
3030
});
3131

@@ -46,7 +46,7 @@ describe('with a changed version', () => {
4646
test('skips tag creation when configured to', async () => {
4747
let result = await execa.node(`${__dirname}/../lib/main.js`, {
4848
env: {
49-
GITHUB_REF: 'master',
49+
GITHUB_REF: 'main',
5050
'INPUT_CREATE-TAG': 'false',
5151
},
5252
});
@@ -67,7 +67,7 @@ describe('with no version change', () => {
6767

6868
let result = await execa.node(`${__dirname}/../lib/main.js`, {
6969
env: {
70-
GITHUB_REF: 'master',
70+
GITHUB_REF: 'main',
7171
},
7272
});
7373

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ outputs:
3131
tag:
3232
description: if a new tag is created, this output will contain its name
3333
runs:
34-
using: 'node12'
34+
using: 'node16'
3535
main: 'dist/index.js'
3636
branding:
3737
icon: tag

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@types/execa": "^2.0.0",
3535
"@types/glob": "^7.1.1",
3636
"@types/jest": "^24.0.23",
37-
"@types/node": "^12.7.12",
37+
"@types/node": "^16.0.0",
3838
"@typescript-eslint/parser": "^2.8.0",
3939
"@zeit/ncc": "^0.20.5",
4040
"eslint": "^6.8.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@
404404
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.7.1.tgz#238eb34a66431b71d2aaddeaa7db166f25971a0d"
405405
integrity sha512-Zq8gcQGmn4txQEJeiXo/KiLpon8TzAl0kmKH4zdWctPj05nWwp1ClMdAVEloqrQKfaC48PNLdgN/aVaLqUrluA==
406406

407-
"@types/node@^12.7.12":
408-
version "12.12.27"
409-
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.27.tgz#d7506f73160ad30fcebbcf5b8b7d2d976e649e42"
410-
integrity sha512-odQFl/+B9idbdS0e8IxDl2ia/LP8KZLXhV3BUeI98TrZp0uoIzQPhGd+5EtzHmT0SMOIaPd7jfz6pOHLWTtl7A==
407+
"@types/node@^16.0.0":
408+
version "16.11.68"
409+
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.68.tgz#30ee923f4d940793e0380f5ce61c0bd4b7196b6c"
410+
integrity sha512-JkRpuVz3xCNCWaeQ5EHLR/6woMbHZz/jZ7Kmc63AkU+1HxnoUugzSWMck7dsR4DvNYX8jp9wTi9K7WvnxOIQZQ==
411411

412412
"@types/stack-utils@^1.0.1":
413413
version "1.0.1"

0 commit comments

Comments
 (0)