Skip to content

Commit

Permalink
remove node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlanabrennan authored and mrickard committed Aug 30, 2024
1 parent e6b6e06 commit db67d36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/azure-site-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

strategy:
matrix:
node-version: ['18.x', '20.x'] # Node 22 isn't yet available for Windows apps in Azure
node-version: ['lts/*']

steps:
- uses: actions/checkout@v4
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Set package filename
run: |
echo "PACKAGE_FILENAME=NewRelic.Azure.WebSites.Extension.NodeAgent.${{env.AGENT_VERSION}}-${{ matrix.node-version }}" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "PACKAGE_FILENAME=NewRelic.Azure.WebSites.Extension.NodeAgent.${{env.AGENT_VERSION}}" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Verify environment vars # because we can't access GH env vars until the next step
run: |
Expand All @@ -54,18 +54,19 @@ jobs:
- name: Install agent
working-directory: cloud-tooling/azure-site-extension/Content
run: |
npm i --prefix Content newrelic@${{ env.AGENT_VERSION }}
npm i --prefix . newrelic@${{ env.AGENT_VERSION }}
echo "Agent installed"
- name: Configure package files
working-directory: cloud-tooling/azure-site-extension
run: |
(Get-Content ${{ env.SPEC_FILE_TEMPLATE }}).Replace('{VERSION}', "${{ env.AGENT_VERSION }}").Replace('{NODE_VERSION}', "${{ matrix.node-version }}") | Set-Content ${{ env.PACKAGE_FILENAME }}.nuspec
(Get-Content ${{ env.SPEC_FILE_TEMPLATE }}).Replace('{VERSION}', "${{ env.AGENT_VERSION }}") | Set-Content ${{ env.PACKAGE_FILENAME }}.nuspec
- name: Create bundle
working-directory: cloud-tooling/azure-site-extension
run: nuget pack "${{ env.PACKAGE_FILENAME }}.nuspec"

# This step is for us to check what's going to be published
- name: Archive package for verification
uses: actions/upload-artifact@v4
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<package>
<metadata>
<id>NewRelic.Azure.WebSites.Extension.NodeAgent</id>
<version>{VERSION}-{NODE_VERSION}</version>
<title>New Relic Node Agent {VERSION} (Node.js {NODE_VERSION})</title>
<version>{VERSION}</version>
<title>New Relic Node Agent {VERSION}</title>
<authors>New Relic</authors>
<license type="expression">Apache-2.0</license>
<projectUrl>https://github.com/newrelic/node-newrelic</projectUrl>
Expand Down

0 comments on commit db67d36

Please sign in to comment.