Skip to content

Commit

Permalink
Release: ✨ Support for new extensions, switch to utls, forceHTTP1 and…
Browse files Browse the repository at this point in the history
… InsecureSkipVerify (#284)
  • Loading branch information
Danny-Dasilva committed Nov 28, 2023
1 parent 4df48e6 commit ec1cd8a
Show file tree
Hide file tree
Showing 44 changed files with 2,490 additions and 303 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.17
go-version: '1.20'

- name: Build
working-directory: ./cycletls
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/manual_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
node-version: [15.x]
go-version: [1.17]
go-version: ['1.20']
steps:
- uses: actions/checkout@v2
- name: 🟢 Use Node.js ${{ matrix.node-version }}
Expand All @@ -24,8 +24,11 @@ jobs:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org

- name: Install jq
run: sudo apt-get install -y jq

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

Expand All @@ -40,7 +43,6 @@ jobs:
echo "PACKAGE_NAME=$(node -p "try { require('./package.json').name } catch(e) {}")" >> $GITHUB_ENV
id: package


- name: Retrieve Latest Version
run: |
echo "::set-output name=LATEST_VERSION::$(npm view ${{ env.PACKAGE_NAME }} version)"
Expand Down Expand Up @@ -69,11 +71,17 @@ jobs:
- name: Install npm depencencies
run: npm ci --unsafe-perm

- name: Tag Submodule
run: |
VERSION=$(npm version --json | jq -r '.cycletls')
SUBMODULE_VERSION="cycletls/v${VERSION}"
git tag $SUBMODULE_VERSION cycletls/
git push origin $SUBMODULE_VERSION
- name: 🚀 publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN}}

- name: Push git
run: git add * && git commit -a -m "[RELEASE] %s" && git push
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
strategy:
matrix:
node-version: [15.x]
go-version: [1.17]
go-version: ['1.20']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: 🟢 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand All @@ -25,7 +25,7 @@ jobs:

token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Export Go
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
test:
strategy:
matrix:
go-version: [1.17]
go-version: ['1.20']
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Download Dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ jobs:
strategy:
matrix:
node-version: [14.x]
go-version: [1.17]
go-version: ['1.20']
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: 🟢 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
strategy:
matrix:
node-version: [15.x]
go-version: [1.17]
go-version: ['1.20']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: 🟢 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand All @@ -21,7 +21,7 @@ jobs:

token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Export Go
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ dist
ignore
.env
golang/go.sum
go.mod
go.sum
tests/images/output*
tests/images/source*
Loading

0 comments on commit ec1cd8a

Please sign in to comment.