Skip to content

Commit

Permalink
try stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
kvchari committed Mar 14, 2022
1 parent 86be5fa commit 283d1a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/publish-npm-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
needs: setup
runs-on: ubuntu-latest
outputs:
core_version: ${{ steps.set-output.outputs.core_version }}
core_version: ${{ steps.build-core.outputs.core_version }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -68,11 +68,6 @@ jobs:
wget -q "${{ env.SCRIPTS_REPO }}/${{ env.SCRIPTS_DIR }}/utils.js" -O ${{ env.SCRIPTS_DIR }}/utils.js
wget -q "${{ env.SCRIPTS_REPO }}/${{ env.SCRIPTS_DIR }}/get-core-version.js" -O ${{ env.SCRIPTS_DIR }}/get-core-version.js
wget -q "${{ env.SCRIPTS_REPO }}/${{ env.SCRIPTS_DIR }}/build-npm-binaries.js" -O ${{ env.SCRIPTS_DIR }}/build-npm-binaries.js
- name: Set output
id: set-output
run: |
CORE_VERSION=$(node ${{ env.SCRIPTS_DIR }}/get-core-version.js ${{ github.event.inputs.amp-version }})
echo "::set-output name=core_version::${CORE_VERSION}"
- name: Build package
id: build-core
run: |
Expand All @@ -81,6 +76,7 @@ jobs:
CORE_VERSION=$(node ${{ env.SCRIPTS_DIR }}/get-core-version.js ${{ github.event.inputs.amp-version }})
cd ./src/bento/core
npm version $CORE_VERSION --git-tag-version=false --allow-same-version=true
echo "::set-output name=core_version::${CORE_VERSION}"
publish:
if: github.repository == 'kvchari/amphtml'
environment: bento_publishing
Expand All @@ -102,7 +98,6 @@ jobs:
wget -q "${{ env.SCRIPTS_REPO }}/${{ env.SCRIPTS_DIR }}/utils.js" -O ${{ env.SCRIPTS_DIR }}/utils.js
wget -q "${{ env.SCRIPTS_REPO }}/${{ env.SCRIPTS_DIR }}/build-npm-binaries.js" -O ${{ env.SCRIPTS_DIR }}/build-npm-binaries.js
wget -q "${{ env.SCRIPTS_REPO }}/${{ env.SCRIPTS_DIR }}/get-package-dir.js" -O ${{ env.SCRIPTS_DIR }}/get-package-dir.js
wget -q "${{ env.SCRIPTS_REPO }}/${{ env.SCRIPTS_DIR }}/write-package-files.js" -O ${{ env.SCRIPTS_DIR }}/write-package-files.js
- name: Build package
run: |
echo ${{ needs.publish-core.outputs.core_version }}
Expand Down
2 changes: 1 addition & 1 deletion build-system/npm-publish/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const coreConfig = {
* @return {Array<any>}
*/
function getExtensionsAndComponents() {
return [...getExtensions(), ...getComponents()];
return [...getExtensions(), ...getComponents()].slice(0, 1);
}

/**
Expand Down

0 comments on commit 283d1a9

Please sign in to comment.