Skip to content

Commit d02f264

Browse files
committed
chore: flos core package changes and make release possible
1 parent ca5cc25 commit d02f264

7 files changed

Lines changed: 188 additions & 250 deletions

File tree

.github/workflows/deploy-npm.yml

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ on:
1212
github-token:
1313
description: "The github token"
1414
required: true
15-
npm-token:
16-
description: "The npm deploy token"
17-
required: true
1815

1916
jobs:
2017
deploy-npm:
@@ -30,32 +27,34 @@ jobs:
3027
node-version: ${{ inputs.node-version }}
3128
registry-url: https://registry.npmjs.org
3229
cache: npm
30+
- name: Clear auth token for OIDC
31+
run: echo "NODE_AUTH_TOKEN=" >> $GITHUB_ENV
3332
- name: Install dependencies
3433
run: npm clean-install --prefer-offline --frozen-lockfile
3534
- name: Lint code
3635
run: npm run lint
3736
- name: Run unit tests
3837
run: npm run test:unit
39-
- name: Update edge release alias
40-
shell: bash
41-
run: |
42-
if ./scripts/semcompare.sh "${{ github.event.release.tag_name }}" "$(cat ./release-aliases/3-EDGE)"; then
43-
echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-EDGE
44-
fi
45-
- name: Update stable release alias
46-
shell: bash
47-
if: github.event.release.prerelease == false
48-
run: |
49-
if ./scripts/semcompare.sh "${{ github.event.release.tag_name }}" "$(cat ./release-aliases/3-STABLE)"; then
50-
echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-STABLE
51-
fi
52-
- name: Prepare Release
53-
uses: lando/prepare-release-action@v3
54-
with:
55-
lando-plugin: true
56-
sync-token: ${{ secrets.github-token }}
57-
sync-email: rtfm47@lando.dev
58-
sync-username: rtfm-47
38+
#- name: Update edge release alias
39+
# shell: bash
40+
# run: |
41+
# if ./scripts/semcompare.sh "${{ github.event.release.tag_name }}" "$(cat ./release-aliases/3-EDGE)"; then
42+
# echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-EDGE
43+
# fi
44+
#- name: Update stable release alias
45+
# shell: bash
46+
# if: github.event.release.prerelease == false
47+
# run: |
48+
# if ./scripts/semcompare.sh "${{ github.event.release.tag_name }}" "$(cat ./release-aliases/3-STABLE)"; then
49+
# echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-STABLE
50+
# fi
51+
#- name: Prepare Release
52+
# uses: lando/prepare-release-action@v3
53+
# with:
54+
# lando-plugin: true
55+
# sync-token: ${{ secrets.github-token }}
56+
# sync-email: rtfm47@lando.dev
57+
# sync-username: rtfm-47
5958
- name: Upgrade npm for trusted publishing
6059
run: npm install -g "npm@^11.5.1"
6160
- name: Publish to npm
@@ -64,8 +63,8 @@ jobs:
6463
PACKAGE=$(node -p "require('./package.json').name")
6564
6665
if [ "${{ github.event.release.prerelease }}" == "false" ]; then
67-
npm publish --access public --dry-run
68-
npm publish --access public
66+
npm publish --access public --tag latest --dry-run
67+
npm publish --access public --tag latest
6968
npm dist-tag add "$PACKAGE@$VERSION" edge
7069
7170
echo "::notice title=Published $VERSION to $PACKAGE::This is a stable release published to the default 'latest' npm tag"
@@ -78,16 +77,14 @@ jobs:
7877
echo "::notice title=Published $VERSION to $PACKAGE::This is a prerelease published to the 'edge' npm tag"
7978
echo "::notice title=Updated edge tag to $VERSION::The edge tag now points to $VERSION"
8079
fi
81-
env:
82-
NODE_AUTH_TOKEN: ${{ secrets.npm-token }}
83-
- name: Update edge release alias on main
84-
if: github.event.release.target_commitish == 'edge'
85-
run: |
86-
git clone https://github.com/lando/core.git core
87-
cd core
88-
git config user.name "rtfm-47"
89-
git config user.email "rtfm47@lando.dev"
90-
echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-EDGE
91-
git add .
92-
git commit -m "Update edge release alias to ${{ github.event.release.tag_name }} triggered by @rtfm-47"
93-
git push https://x-access-token:${{ secrets.github-token }}@github.com/lando/core.git main
80+
#- name: Update edge release alias on main
81+
# if: github.event.release.target_commitish == 'edge'
82+
# run: |
83+
# git clone https://github.com/lando/core.git core
84+
# cd core
85+
# git config user.name "rtfm-47"
86+
# git config user.email "rtfm47@lando.dev"
87+
# echo "${{ github.event.release.tag_name }}" > ./release-aliases/3-EDGE
88+
# git add .
89+
# git commit -m "Update edge release alias to ${{ github.event.release.tag_name }} triggered by @rtfm-47"
90+
# git push https://x-access-token:${{ secrets.github-token }}@github.com/lando/core.git main

.github/workflows/dev-release.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -29,38 +29,38 @@ jobs:
2929
os: ${{ matrix.os }}
3030
version: dev
3131

32-
sign:
33-
uses: ./.github/workflows/sign-binary.yml
34-
needs:
35-
- package
36-
strategy:
37-
fail-fast: false
38-
matrix:
39-
file:
40-
- lando-linux-arm64-${{ github.sha }}
41-
- lando-macos-arm64-${{ github.sha }}
42-
- lando-win-arm64-${{ github.sha }}
32+
#sign:
33+
# uses: ./.github/workflows/sign-binary.yml
34+
# needs:
35+
# - package
36+
# strategy:
37+
# fail-fast: false
38+
# matrix:
39+
# file:
40+
# - lando-linux-arm64-${{ github.sha }}
41+
# - lando-macos-arm64-${{ github.sha }}
42+
# - lando-win-arm64-${{ github.sha }}
4343

44-
- lando-linux-x64-${{ github.sha }}
45-
- lando-macos-x64-${{ github.sha }}
46-
- lando-win-x64-${{ github.sha }}
44+
# - lando-linux-x64-${{ github.sha }}
45+
# - lando-macos-x64-${{ github.sha }}
46+
# - lando-win-x64-${{ github.sha }}
4747

48-
with:
49-
download-pattern: packaged-lando-*
50-
file: ${{ matrix.file }}
51-
secrets:
52-
apple-notary-user: ${{ secrets.APPLE_NOTARY_USER }}
53-
apple-notary-password: ${{ secrets.APPLE_NOTARY_PASSWORD }}
54-
certificate-data: ${{ contains(matrix.file, 'macos') && secrets.APPLE_CERT_DATA || secrets.KEYLOCKER_CLIENT_CERT }}
55-
certificate-password: ${{ contains(matrix.file, 'macos') && secrets.APPLE_CERT_PASSWORD || secrets.KEYLOCKER_CLIENT_CERT_PASSWORD }}
56-
keylocker-api-key: ${{ secrets.KEYLOCKER_API_KEY }}
57-
keylocker-cert-sha1-hash: ${{ secrets.KEYLOCKER_CERT_SHA1_HASH }}
58-
keylocker-keypair-alias: ${{ secrets.KEYLOCKER_KEYPAIR_ALIAS }}
48+
# with:
49+
# download-pattern: packaged-lando-*
50+
# file: ${{ matrix.file }}
51+
# secrets:
52+
# apple-notary-user: ${{ secrets.APPLE_NOTARY_USER }}
53+
# apple-notary-password: ${{ secrets.APPLE_NOTARY_PASSWORD }}
54+
# certificate-data: ${{ contains(matrix.file, 'macos') && secrets.APPLE_CERT_DATA || secrets.KEYLOCKER_CLIENT_CERT }}
55+
# certificate-password: ${{ contains(matrix.file, 'macos') && secrets.APPLE_CERT_PASSWORD || secrets.KEYLOCKER_CLIENT_CERT_PASSWORD }}
56+
# keylocker-api-key: ${{ secrets.KEYLOCKER_API_KEY }}
57+
# keylocker-cert-sha1-hash: ${{ secrets.KEYLOCKER_CERT_SHA1_HASH }}
58+
# keylocker-keypair-alias: ${{ secrets.KEYLOCKER_KEYPAIR_ALIAS }}
5959

6060
build-release-binary-alias:
6161
uses: ./.github/workflows/release-rename-binary.yml
6262
needs:
63-
- sign
63+
- package
6464
strategy:
6565
fail-fast: false
6666
matrix:
@@ -77,11 +77,11 @@ jobs:
7777
with:
7878
source: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.sha }}
7979
destination: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.alias }}
80-
download-pattern: signed-lando-*
80+
download-pattern: packaged-lando-*
8181
build-release-binary-branch:
8282
uses: ./.github/workflows/release-rename-binary.yml
8383
needs:
84-
- sign
84+
- package
8585
strategy:
8686
fail-fast: false
8787
matrix:
@@ -96,7 +96,7 @@ jobs:
9696
with:
9797
source: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.sha }}
9898
destination: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.head_ref || github.ref_name }}
99-
download-pattern: signed-lando-*
99+
download-pattern: packaged-lando-*
100100

101101
checksum:
102102
uses: ./.github/workflows/generate-checksums.yml
@@ -116,16 +116,16 @@ jobs:
116116
show: true
117117
upload-name: release-checksums-${{ matrix.alias }}
118118

119-
deploy-releases-s3:
120-
uses: ./.github/workflows/deploy-s3.yml
121-
needs:
122-
- checksum
123-
with:
124-
download-pattern: release-*
125-
secrets:
126-
aws-secret-access-key: ${{ secrets.S3_SECRET_ACCESS_KEY }}
127-
aws-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
128-
aws-region: us-east-1
119+
#deploy-releases-s3:
120+
# uses: ./.github/workflows/deploy-s3.yml
121+
# needs:
122+
# - checksum
123+
# with:
124+
# download-pattern: release-*
125+
# secrets:
126+
# aws-secret-access-key: ${{ secrets.S3_SECRET_ACCESS_KEY }}
127+
# aws-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }}
128+
# aws-region: us-east-1
129129
deploy-releases-artifacts:
130130
uses: ./.github/workflows/deploy-artifacts.yml
131131
needs:

.github/workflows/pkg-binary.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
cache: npm
5252
- name: Install dependencies
5353
run: npm clean-install --prefer-offline --frozen-lockfile --production
54-
- name: Install plugins
55-
run: scripts/install-plugins.sh --lando bin/lando ${{ inputs.edge == true && '--edge' || '' }}
54+
#- name: Install plugins
55+
# run: scripts/install-plugins.sh --lando bin/lando ${{ inputs.edge == true && '--edge' || '' }}
5656
- name: Switch to edge channel
5757
if: inputs.edge == true
5858
run: |
@@ -82,8 +82,8 @@ jobs:
8282
- name: Ensure channel
8383
if: (inputs.os == 'linux' && runner.os == 'Linux') || (inputs.os == 'macos' && runner.os == 'macOS')
8484
run: ./dist/${{ inputs.filename }} config --path channel | grep ${{ inputs.edge == true && 'edge' || 'stable' }}
85-
- name: Ensure plugin install
86-
if: ((inputs.os == 'linux' && runner.os == 'Linux') || (inputs.os == 'macos' && runner.os == 'macOS'))
87-
run: |
88-
./dist/${{ inputs.filename }} config --path fatcore | grep true
89-
./dist/${{ inputs.filename }} config | grep -q "/snapshot/core/plugins/wordpress"
85+
#- name: Ensure plugin install
86+
# if: ((inputs.os == 'linux' && runner.os == 'Linux') || (inputs.os == 'macos' && runner.os == 'macOS'))
87+
# run: |
88+
# ./dist/${{ inputs.filename }} config --path fatcore | grep true
89+
# ./dist/${{ inputs.filename }} config | grep -q "/snapshot/core/plugins/wordpress"

0 commit comments

Comments
 (0)