Skip to content

Commit

Permalink
add npm publish and .NET build
Browse files Browse the repository at this point in the history
  • Loading branch information
Matchlighter committed Oct 22, 2020
1 parent b6c9a5d commit e56d8da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: release

"on":
push:
tags:
Expand All @@ -10,9 +8,6 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
GO111MODULE: "on"

jobs:
Expand Down Expand Up @@ -159,6 +154,7 @@ jobs:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@b811287a6e06bb7e5d8b91132b839c67e3f9c6ed
# TODO
# - name: Run golangci
# run: cd sdk/go/proxmoxve && golangci-lint run -c ../../../.golangci.yml

Expand Down Expand Up @@ -281,6 +277,14 @@ jobs:
path: ${{ github.workspace}}/sdk
- name: Unzip DotNet SDK
run: tar -zxf ${{ github.workspace}}/sdk/dotnet.tar.gz -C ${{ github.workspace}}/sdk/dotnet

- name: Publish NPM Package
uses: JS-DevTools/npm-publish@v1
with:
package: ./sdk/nodejs/bin/package.json
token: ${{ secrets.NPM_TOKEN }}

# TODO
# - env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# name: Publish SDKs
Expand Down Expand Up @@ -343,7 +347,7 @@ jobs:
run: tar -zxf ${{ github.workspace}}/sdk/${{ matrix.language}}.tar.gz -C ${{
github.workspace}}/sdk/${{ matrix.language}}
- name: Update path
run: echo ::add-path::${{ github.workspace }}/bin
run: echo ${{ github.workspace }}/bin >> $GITHUB_PATH
- name: Install Python deps
run: |-
pip3 install virtualenv==20.0.23
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ provider:: tfgen install_plugins # build the provider binary
(cd provider && go build -o $(WORKING_DIR)/bin/${PROVIDER} -ldflags "-X ${PROJECT}/${VERSION_PATH}=${VERSION}" ${PROJECT}/${PROVIDER_PATH}/cmd/${PROVIDER})

# Build SDKs:
build_sdks:: install_plugins provider build_nodejs build_python build_go # build_dotnet
build_sdks:: install_plugins provider build_nodejs build_python build_go build_dotnet

build_nodejs:: VERSION := $(shell pulumictl get version --language javascript)
build_nodejs:: install_plugins tfgen # build the node sdk
Expand Down Expand Up @@ -76,7 +76,7 @@ install_plugins::
[ -x $(shell which pulumi) ] || curl -fsSL https://get.pulumi.com | sh

# Install SDKs:
install_sdks:: install_python_sdk install_nodejs_sdk # install_dotnet_sdk 
install_sdks:: install_python_sdk install_nodejs_sdk install_dotnet_sdk

install_dotnet_sdk::
mkdir -p $(WORKING_DIR)/nuget
Expand Down

0 comments on commit e56d8da

Please sign in to comment.