Skip to content

Commit e210c14

Browse files
committed
test(ci): fetch with secret manager gha
1 parent 871f620 commit e210c14

File tree

1 file changed

+34
-27
lines changed

1 file changed

+34
-27
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
78

89
concurrency: ${{ github.workflow }}-${{ github.ref }}
910

@@ -13,38 +14,44 @@ jobs:
1314
runs-on: ubuntu-latest
1415
permissions: write-all
1516
steps:
16-
- uses: scaleway/action-scw-secret@v0
1717
- name: Pull Secrets
18+
uses: scaleway/action-scw-secret@v0
1819
with:
1920
secret-names: |
20-
NPM_TOKEN,npm/token_scaleway_lib
21+
NPM_TOKEN,npm/token_scaleway_lib_test
2122
access-key: ${{ vars.SCW_ACCESS_KEY }}
2223
secret-key: ${{ secrets.SCW_SECRET_KEY }}
2324
default-project-id: ${{ vars.SCW_DEFAULT_PROJECT_ID }}
2425
default-organization-id: ${{ vars.SCW_DEFAULT_ORGANIZATION_ID }}
25-
- uses: actions/[email protected]
26-
- name: Git Identity
26+
- name: Check fetch secret
2727
run: |
28-
git config --global user.name 'Scaleway Bot'
29-
git config --global user.email '[email protected]'
30-
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
- uses: pnpm/[email protected]
34-
- name: Use Node.js
35-
uses: actions/[email protected]
36-
with:
37-
node-version: 22.19.0
38-
cache: 'pnpm'
39-
- run: pnpm install
40-
- name: Create Release Pull Request or Publish to npm
41-
id: changesets
42-
uses: changesets/action@v1
43-
with:
44-
commit: 'chore: release'
45-
title: 'chore: release'
46-
publish: pnpm release
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
NPM_TOKEN: ${{ env.NPM_TOKEN }}
50-
NPM_CONFIG_PROVENANCE: true
28+
echo "Fetching secrets..."
29+
echo "Secrets fetched successfully."
30+
echo "$env:NPM_TOKEN"
31+
32+
# - uses: actions/[email protected]
33+
# - name: Git Identity
34+
# run: |
35+
# git config --global user.name 'Scaleway Bot'
36+
# git config --global user.email '[email protected]'
37+
# git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
38+
# env:
39+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
# - uses: pnpm/[email protected]
41+
# - name: Use Node.js
42+
# uses: actions/[email protected]
43+
# with:
44+
# node-version: 22.19.0
45+
# cache: 'pnpm'
46+
# - run: pnpm install
47+
# - name: Create Release Pull Request or Publish to npm
48+
# id: changesets
49+
# uses: changesets/action@v1
50+
# with:
51+
# commit: 'chore: release'
52+
# title: 'chore: release'
53+
# publish: pnpm release
54+
# env:
55+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
# NPM_TOKEN: ${{ env.NPM_TOKEN }}
57+
# NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)