1616 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
1717 PROVIDER : stackit
1818 PULUMI_GO_DEP_ROOT : ${{ github.workspace }}/..
19- PUBLISH_NPM : true
19+ # TODO: change to true if ready to release
20+ PUBLISH_NPM : false
2021 # NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
2122 # NUGET_FEED_URL: https://api.nuget.org/v3/index.json
2223 # PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
2627 # PUBLISH_NUGET: true
2728jobs :
2829 publish_binary :
29- name : publish
30+ name : Publish provider
3031 runs-on : ubuntu-latest
3132 steps :
3233 # TODO: remove when this repo is made public
3940 # TODO: remove end
4041 - name : Checkout Repo
4142 uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # tag=v4.2.2
42- with :
43- fetch-depth : 0
4443 - name : Unshallow clone for tags
4544 run : git fetch --prune --unshallow --tags
4645 - name : Install pulumictl
5150 uses : ./.github/actions/gotools
5251 with :
5352 go-version : ${{ matrix.goversion }}
54- # - name: Set PreRelease Version
55- # run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> $GITHUB_ENV
5653 - uses : sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
5754 - uses : anchore/sbom-action/download-syft@fbfd9c6c189226748411491745178e0c2017392d # v0.20.10
5855 - name : Debugging what was changed
@@ -63,15 +60,15 @@ jobs:
6360 - name : Run GoReleaser
6461 uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # tag=v6.3.0
6562 with :
66- args : -p 3 release --clean --snapshot
63+ args : -p 3 release --clean
6764 version : ' ~> v2'
6865 strategy :
6966 fail-fast : true
7067 matrix :
7168 goversion :
7269 - 1.24.x
7370 publish_sdk :
74- name : Publish SDKs
71+ name : Publish SDKs to npm Registry, NuGet Gallery and Python Package Index
7572 runs-on : ubuntu-latest
7673 needs : publish_binary
7774 steps :
@@ -87,28 +84,15 @@ jobs:
8784 uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # tag=v4.2.2
8885 - name : Unshallow clone for tags
8986 run : git fetch --prune --unshallow --tags
90- - name : Install pulumictl
91- uses : jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # tag=v2.1.0
92- with :
93- repo : pulumi/pulumictl
94- - name : Install pulumi
95- uses : pulumi/actions@v6
9687 - name : Install Go Tools
9788 uses : ./.github/actions/gotools
9889 with :
9990 go-version : ${{ matrix.goversion }}
100- - name : Setup Node
101- uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # tag=v6.0.0
102- with :
103- node-version : ${{matrix.nodeversion}}
104- # registry-url: ${{env.NPM_REGISTRY_URL}}
105- - name : Setup DotNet
106- uses : actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # tag=v5.0.0
91+ - name : Install Pulumi Tools
92+ uses : ./.github/actions/pulumitools
10793 with :
10894 dotnet-version : ${{matrix.dotnetverson}}
109- - name : Setup Python
110- uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # tag=v6.0.0
111- with :
95+ node-version : ${{matrix.nodeversion}}
11296 python-version : ${{matrix.pythonversion}}
11397 - name : Build SDK
11498 run : make build_${{ matrix.language }}
@@ -121,8 +105,9 @@ jobs:
121105 git diff
122106 exit 1
123107 fi
124- - name : Run all unit tests
125- run : make test
108+ - if : ${{ matrix.language == 'nodejs' }}
109+ name : Run type script unit tests
110+ run : make test_ts
126111 - if : ${{ matrix.language == 'python' && env.PUBLISH_PYPI == 'true' }}
127112 name : Publish package to PyPI
128113 uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # tag=v1.13.0
@@ -133,16 +118,17 @@ jobs:
133118 - if : ${{ matrix.language == 'nodejs' && env.PUBLISH_NPM == 'true' }}
134119 uses : JS-DevTools/npm-publish@7f8fe47b3bea1be0c3aec2b717c5ec1f3e03410b # tag=v4.1.1
135120 with :
136- access : " private "
137- # token: ${{ env.NPM_TOKEN }}
138- token : ${{ secrets.PR_TOKEN }}
121+ access : " public "
122+ # old way, we want to use Trusted publishers
123+ # token: ${{ env.NPM_TOKEN }}
139124 package : ${{github.workspace}}/sdk/nodejs/bin/package.json
140125 provenance : true
141126 - if : ${{ matrix.language == 'dotnet' && env.PUBLISH_NUGET == 'true' }}
142127 name : publish nuget package
143128 run : |
144129 dotnet nuget push ${{github.workspace}}/sdk/dotnet/bin/Debug/*.nupkg -s ${{ env.NUGET_FEED_URL }} -k ${{ env.NUGET_PUBLISH_KEY }}
145130 echo "done publishing packages"
131+ # TODO: publish go sdk to github
146132 strategy :
147133 fail-fast : true
148134 matrix :
0 commit comments