Skip to content

test(ci): fetch with secret manager gha #1535

test(ci): fetch with secret manager gha

test(ci): fetch with secret manager gha #1535

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 18, Col: 9): Required property is missing: uses
on:
push:
branches:
- main
pull_request:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: scaleway/action-scw-secret@v0
- name: Pull Secrets
with:
secret-names: |
NPM_TOKEN,npm/token_scaleway_lib_test
access-key: ${{ vars.SCW_ACCESS_KEY }}
secret-key: ${{ secrets.SCW_SECRET_KEY }}
default-project-id: ${{ vars.SCW_DEFAULT_PROJECT_ID }}
default-organization-id: ${{ vars.SCW_DEFAULT_ORGANIZATION_ID }}
- name: Check fetch secret
run: |
echo "Fetching secrets..."
echo "Secrets fetched successfully."
echo "$env:NPM_TOKEN"
# - uses: actions/[email protected]
# - name: Git Identity
# run: |
# git config --global user.name 'Scaleway Bot'
# git config --global user.email '[email protected]'
# git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: pnpm/[email protected]
# - name: Use Node.js
# uses: actions/[email protected]
# with:
# node-version: 22.19.0
# cache: 'pnpm'
# - run: pnpm install
# - name: Create Release Pull Request or Publish to npm
# id: changesets
# uses: changesets/action@v1
# with:
# commit: 'chore: release'
# title: 'chore: release'
# publish: pnpm release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ env.NPM_TOKEN }}
# NPM_CONFIG_PROVENANCE: true