2023-01-24 13:54:42 +00:00
|
|
|
name: "Publish aqua"
|
2023-01-20 08:52:17 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
2023-02-01 09:21:33 +00:00
|
|
|
tag:
|
|
|
|
description: "tag to checkout to"
|
2023-01-20 08:54:32 +00:00
|
|
|
type: string
|
|
|
|
required: true
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
2023-02-01 09:21:33 +00:00
|
|
|
tag:
|
|
|
|
description: "tag to checkout to"
|
2023-01-20 08:54:32 +00:00
|
|
|
type: string
|
2023-01-20 08:52:17 +00:00
|
|
|
required: true
|
|
|
|
|
|
|
|
env:
|
|
|
|
FORCE_COLOR: true
|
|
|
|
|
|
|
|
jobs:
|
2023-06-22 11:59:56 +00:00
|
|
|
publish:
|
2023-01-20 08:52:17 +00:00
|
|
|
runs-on: builder
|
2023-01-24 13:54:42 +00:00
|
|
|
timeout-minutes: 60
|
|
|
|
|
2023-06-22 11:59:56 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
id-token: write
|
|
|
|
|
2023-01-20 08:52:17 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-09-11 12:42:20 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-02-01 09:21:33 +00:00
|
|
|
with:
|
|
|
|
ref: ${{ inputs.tag }}
|
2023-01-20 08:52:17 +00:00
|
|
|
|
|
|
|
- name: Cache Scala
|
|
|
|
uses: coursier/cache-action@v6
|
|
|
|
|
|
|
|
- name: Setup Scala
|
|
|
|
uses: coursier/setup-action@v1
|
|
|
|
with:
|
|
|
|
apps: sbt
|
|
|
|
|
2023-06-22 11:59:56 +00:00
|
|
|
- name: scala-js build
|
2023-09-18 07:53:25 +00:00
|
|
|
run: sbt ";language-server-apiJS/fullBundleJS;aqua-apiJS/fullBundleJS"
|
2023-01-20 08:52:17 +00:00
|
|
|
|
|
|
|
- name: Import secrets
|
2024-05-20 06:54:49 +00:00
|
|
|
uses: hashicorp/vault-action@v3.0.0
|
2023-01-20 08:52:17 +00:00
|
|
|
with:
|
|
|
|
url: https://vault.fluence.dev
|
|
|
|
path: jwt/github
|
|
|
|
role: ci
|
|
|
|
method: jwt
|
|
|
|
jwtGithubAudience: "https://github.com/fluencelabs"
|
|
|
|
jwtTtl: 300
|
|
|
|
exportToken: false
|
|
|
|
secrets: |
|
|
|
|
kv/npmjs/fluencebot token | NODE_AUTH_TOKEN
|
|
|
|
|
2023-06-22 11:59:56 +00:00
|
|
|
- name: Setup pnpm
|
2024-05-20 06:54:49 +00:00
|
|
|
uses: pnpm/action-setup@v4.0.0
|
2023-01-20 08:52:17 +00:00
|
|
|
with:
|
2023-06-22 11:59:56 +00:00
|
|
|
version: 8
|
2023-01-20 08:52:17 +00:00
|
|
|
|
2023-06-22 11:59:56 +00:00
|
|
|
- name: Setup node with self-hosted npm registry
|
2023-12-13 09:46:28 +00:00
|
|
|
uses: actions/setup-node@v4
|
2023-01-20 08:52:17 +00:00
|
|
|
with:
|
2023-08-24 10:20:34 +00:00
|
|
|
node-version: "18"
|
2023-01-20 08:52:17 +00:00
|
|
|
registry-url: "https://registry.npmjs.org"
|
2023-06-22 11:59:56 +00:00
|
|
|
cache: "pnpm"
|
2023-01-20 08:52:17 +00:00
|
|
|
|
2023-08-03 12:32:27 +00:00
|
|
|
- run: pnpm --filter='!integration-tests' -r i
|
|
|
|
- run: pnpm --filter='!integration-tests' -r build
|
2023-01-20 08:52:17 +00:00
|
|
|
|
|
|
|
- name: Publish to NPM registry
|
2023-08-03 12:32:27 +00:00
|
|
|
run: pnpm --filter='!integration-tests' publish --access public --tag unstable
|