add dist #12
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: CI | |
on: | |
push: | |
branches: ['**'] | |
pull_request: | |
branches: ['**'] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Run tests | |
run: npm test | |
- name: Get version | |
id: versions | |
uses: ./ | |
with: | |
token: ${{ github.token }} | |
repos: | | |
- repo: gotray/got | |
version: v0.1.1 | |
var_name: GOT_VERSION | |
- name: Download checksums | |
run: | | |
VERSION="${{ steps.versions.outputs.gotray_got_version }}" | |
if [ -z "$VERSION" ]; then | |
echo " No version found" | |
exit 1 | |
fi | |
CHECKSUMS_URL="https://github.com/gotray/got/releases/download/${VERSION}/got_${VERSION#v}_checksums.txt" | |
echo "Downloading checksums from: $CHECKSUMS_URL" | |
if curl -sSL -f "$CHECKSUMS_URL" -o checksums.txt; then | |
echo " Successfully downloaded checksums file:" | |
cat checksums.txt | |
else | |
echo " Failed to download checksums file" | |
exit 1 | |
fi | |
- name: Debug Outputs | |
run: | | |
echo "Environment variables:" | |
env | grep GOT_VERSION || true | |
echo "Action outputs:" | |
echo "Got version (from outputs): ${{ steps.versions.outputs.gotray_got_version }}" |