Skip to content

Commit 53c5890

Browse files
authored
fix: Retract existing released versions and return to v0 (#4)
1 parent d3e76f3 commit 53c5890

File tree

5 files changed

+73
-3
lines changed

5 files changed

+73
-3
lines changed

.github/workflows/go.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Go
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopen] # these are the defaults - synchronize means 'commits pushed to PR'
5+
6+
concurrency:
7+
group: ${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
test:
12+
name: Run tests and race detection
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Set up Go 1.19
16+
uses: actions/setup-go@v3
17+
with:
18+
go-version: 1.19
19+
id: go
20+
21+
- name: Check out code
22+
uses: actions/checkout@v3
23+
24+
- name: Get dependencies
25+
shell: bash
26+
run: go get -v -t -d ./...
27+
28+
- name: Run tests with race detection
29+
run: go test -v -race ./...
30+
31+
golangci:
32+
name: Run golangci-lint
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Check out code
36+
uses: actions/checkout@v3
37+
38+
- name: golangci-lint
39+
uses: golangci/golangci-lint-action@v3
40+
with:
41+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
42+
version: v1.50
43+
44+
# Optional: show only new issues if it's a pull request. The default value is `false`.
45+
only-new-issues: true

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- "master"
6+
7+
jobs:
8+
release-please:
9+
name: Run release-please
10+
runs-on: ubuntu-latest
11+
if: github.repository == 'jtwatson/twilio'
12+
steps:
13+
- uses: google-github-actions/release-please-action@v3
14+
with:
15+
release-type: go
16+
package-name: twilio
17+
token: ${{ secrets.PAT_RELEASES }}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# twilio
2+
3+
[![GoDoc](https://img.shields.io/badge/pkg.go.dev-doc-blue)](http://pkg.go.dev/github.com/jtwatson/twilio)
4+
5+
**twilio** implements the Twilio Programmable Voice API.

go.mod

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
module github.com/jtwatson/twilio
22

3-
go 1.12
3+
go 1.19
4+
5+
retract [v1.0.0, v1.2.2]
46

57
require (
68
github.com/google/go-querystring v1.1.0
7-
github.com/hashicorp/golang-lru v0.5.1 // indirect
89
github.com/pkg/errors v0.8.1
910
go.opencensus.io v0.21.0
11+
)
12+
13+
require (
14+
github.com/hashicorp/golang-lru v0.5.1 // indirect
1015
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c // indirect
1116
)

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h
3535
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
3636
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
3737
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
38-
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
3938
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
4039
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
4140
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=

0 commit comments

Comments
 (0)