-
Notifications
You must be signed in to change notification settings - Fork 11
Refactoring code to enable a common package for bicep-deploy #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8575eed
9e65736
a7aba65
7fa5758
0bb8caa
9130a73
f3a8c9d
8f474ff
878da4f
111caba
ac008fe
2da870a
1996ee1
6aa3c33
166c4f4
6bd1b9c
3d5f034
7b1fd0d
fbfd8bf
c04163b
6195af3
89f010c
e6f270b
24aadff
ff1a5f1
d634139
dbe96e3
7d55bbc
9997700
d25cd75
0b1ff30
df0027e
2901937
014e333
c590d43
d8a9096
a652068
397b13c
f5f66c3
23175c9
9a2a330
af9ea5d
ec903e7
0649ac6
e7d6e93
864434d
3683b70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| name: Upload bicep-deploy-common Package | ||
|
|
||
| on: workflow_dispatch | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| upload-package: | ||
| name: Upload bicep-deploy-common Package | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| id: checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Setup Node.js | ||
| id: setup-node | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: .node-version | ||
| cache: npm | ||
|
|
||
| - name: Install Dependencies for bicep-deploy-common | ||
| id: install-common | ||
| working-directory: ./packages/bicep-deploy-common | ||
| run: npm ci | ||
|
|
||
| - name: Build bicep-deploy-common Package | ||
| id: build | ||
| working-directory: ./packages/bicep-deploy-common | ||
| run: | | ||
| rm -Rf dist | ||
| npm run build | ||
|
|
||
| - name: Create package tarball | ||
| id: pack | ||
| working-directory: ./packages/bicep-deploy-common | ||
| run: | | ||
| packOutput=$(npm pack --json) | ||
| echo "filename=$(echo $packOutput | jq -r '.[0].filename')" >> $GITHUB_OUTPUT | ||
| echo "version=$(echo $packOutput | jq -r '.[0].version')" >> $GITHUB_OUTPUT | ||
|
|
||
| # Using upload steps defined for the Partner Release Pipeline (https://aka.ms/azsdk/partner-release-pipeline) | ||
| # azuresdkpartnerdrops is the managed identity that we use to upload to the partner drop folder | ||
| - name: Login to azuresdkpartnerdrops | ||
| uses: azure/login@v2 | ||
| with: | ||
| client-id: ${{ secrets.AZURESDKPARTNERDROPS_CLIENT_ID }} | ||
| tenant-id: ${{ secrets.AZURESDKPARTNERDROPS_TENANT_ID }} | ||
| subscription-id: ${{ secrets.AZURESDKPARTNERDROPS_SUBSCRIPTION_ID }} | ||
|
|
||
| # Upload bicep-deploy-common package to partner drop folder to allow external distribution under the @azure scope | ||
| - name: Upload files to partner drop folder | ||
| working-directory: ./packages/bicep-deploy-common | ||
| run: | | ||
| echo "Uploading ${{ steps.pack.outputs.filename }} to partner drop folder at drops/bicep-deploy-common/npm/${{ steps.pack.outputs.version }}..." | ||
| az storage blob upload -f ${{ steps.pack.outputs.filename }} -c drops/bicep-deploy-common/npm/${{ steps.pack.outputs.version }} --account-name azuresdkpartnerdrops --auth-mode login |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 22.8.0 | ||
| 22.12.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,4 +108,4 @@ inputs: | |
|
|
||
| runs: | ||
| using: node20 | ||
| main: dist/index.js | ||
| main: dist/index.cjs | ||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,37 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| // @ts-check | ||
| // @ts-nocheck | ||
| import eslint from "@eslint/js"; | ||
| import tseslint from "typescript-eslint"; | ||
| import pluginJest from 'eslint-plugin-jest'; | ||
| import vitest from '@vitest/eslint-plugin'; | ||
| import notice from "eslint-plugin-notice"; | ||
| import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; | ||
|
|
||
| export default tseslint.config({ | ||
| files: ["src/**/*.ts", "test/**/*.ts", "test-live/**/*.ts"], | ||
| extends: [ | ||
| eslint.configs.recommended, | ||
| pluginJest.configs['flat/recommended'], | ||
| eslintPluginPrettierRecommended, | ||
| ...tseslint.configs.recommended, | ||
| ], | ||
| languageOptions: { | ||
| ecmaVersion: 2020, | ||
| }, | ||
| plugins: { notice }, | ||
| rules: { | ||
| "notice/notice": [ | ||
| "error", | ||
| { | ||
| template: "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n", | ||
| }, | ||
| ], | ||
| }, | ||
| }); | ||
| export default [ | ||
| eslint.configs.recommended, | ||
| ...tseslint.configs.recommended, | ||
| eslintPluginPrettierRecommended, | ||
| { | ||
| files: ["src/**/*.ts", "test/**/*.ts", "test-live/**/*.ts", "packages/**/*.ts"], | ||
| languageOptions: { | ||
| ecmaVersion: 2020, | ||
| globals: { | ||
| ...vitest.environments.env.globals, | ||
| } | ||
| }, | ||
| plugins: { | ||
| notice, | ||
| vitest | ||
| }, | ||
| rules: { | ||
| "notice/notice": [ | ||
| "error", | ||
| { | ||
| template: "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n", | ||
| }, | ||
| ], | ||
| ...vitest.configs.recommended.rules, | ||
| }, | ||
| } | ||
| ]; |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New action to upload package bits. For now it can only be invoked manually.