@@ -65,38 +65,41 @@ jobs:
6565 env :
6666 GITHUB_TOKEN : ${{ steps.app_token.outputs.token }}
6767
68- # - name: Copy puya-ts version to algo-ts
69- # run: |
70- # cd artifacts/puya-ts
71- # newVersion=$(npm view ./ version)
72- # npm pkg set dependencies.@algorandfoundation/algorand-typescript=$newVersion
73- # cd ../algo-ts
74- # npm pkg set version=$newVersion
68+ - name : Copy puya-ts version to algo-ts
69+ if : github.ref_name != 'main'
70+ run : |
71+ cd artifacts/puya-ts
72+ newVersion=$(npm view ./ version)
73+ npm pkg set dependencies.@algorandfoundation/algorand-typescript=$newVersion
74+ cd ../algo-ts
75+ npm pkg set version=$newVersion
7576
76- # - name: Publish @algorandfoundation/algorand-typescript
77- # uses: JS-DevTools/npm-publish@v3
78- # id: publish-algo-ts
79- # with:
80- # token: ${{ secrets.NPM_TOKEN }}
81- # package: artifacts/algo-ts/package.json
82- # access: 'public'
83- # tag: ${{ github.ref_name == 'alpha' && 'alpha' || github.ref_name == 'main' && 'beta' || github.ref_name == 'release' && 'latest' || 'pre-release' }}
77+ - name : Publish @algorandfoundation/algorand-typescript
78+ if : github.ref_name != 'main'
79+ uses : JS-DevTools/npm-publish@v3
80+ id : publish-algo-ts
81+ with :
82+ token : ${{ secrets.NPM_TOKEN }}
83+ package : artifacts/algo-ts/package.json
84+ access : ' public'
85+ tag : ${{ github.ref_name == 'alpha' && 'alpha' || github.ref_name == 'main' && 'beta' || github.ref_name == 'release' && 'latest' || 'pre-release' }}
8486
85- # - name: Publish @algorandfoundation/puya-ts
86- # uses: JS-DevTools/npm-publish@v3
87- # id: publish-puya-ts
88- # with:
89- # token: ${{ secrets.NPM_TOKEN }}
90- # package: artifacts/puya-ts/package.json
91- # access: 'public'
92- # tag: ${{ github.ref_name == 'alpha' && 'alpha' || github.ref_name == 'main' && 'beta' || github.ref_name == 'release' && 'latest' || 'pre-release' }}
87+ - name : Publish @algorandfoundation/puya-ts
88+ if : github.ref_name != 'main'
89+ uses : JS-DevTools/npm-publish@v3
90+ id : publish-puya-ts
91+ with :
92+ token : ${{ secrets.NPM_TOKEN }}
93+ package : artifacts/puya-ts/package.json
94+ access : ' public'
95+ tag : ${{ github.ref_name == 'alpha' && 'alpha' || github.ref_name == 'main' && 'beta' || github.ref_name == 'release' && 'latest' || 'pre-release' }}
9396
94- # publish-docs:
95- # name: Publish docs
96- # needs: release
97- # if: github.ref_name == 'release'
98- # uses: ./.github/workflows/gh-pages.yml
99- # permissions:
100- # contents: read
101- # pages: write
102- # id-token: write
97+ publish-docs :
98+ name : Publish docs
99+ needs : release
100+ if : github.ref_name == 'release'
101+ uses : ./.github/workflows/gh-pages.yml
102+ permissions :
103+ contents : read
104+ pages : write
105+ id-token : write
0 commit comments