-
Notifications
You must be signed in to change notification settings - Fork 173
42 lines (34 loc) · 1.09 KB
/
test_npm_publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "🚨 🚀 🟢 Npm Test Publish Package"
on: [pull_request]
jobs:
release:
name: Test Npm Publish
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
go-version: ['1.21']
steps:
- 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"
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Export Go
run: go env -w GO111MODULE=auto
working-directory: ./
- name: Install golang all deps
run: while read l; do go get -v "$l"; done < <(go list -f '{{ join .Imports "\n" }}' ./cycletls)
shell: bash
- name: Install npm depencencies
run: npm ci --unsafe-perm
working-directory: ./
- name: 🚀 publish
run: npm publish --dry-run
working-directory: ./