β Fix Pipelines #363
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ./ |