Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
id-token: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Use Node.js 22.x
uses: actions/setup-node@v4
- name: Use Node.js 24.x
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version: 24.x

- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v5
with:
package_json_file: docs/package.json

Expand All @@ -34,9 +34,9 @@ jobs:
run: pnpm --dir docs run build

- name: Upload to GitHub Pages
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v4
with:
path: docs/dist

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5
10 changes: 5 additions & 5 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

# setup node + private repo access
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
Expand All @@ -121,13 +121,13 @@ jobs:

- name: Set up Python
if: ${{ inputs.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.python-version }}

- name: Download artifacts
if: ${{ inputs.download-artifact-name || inputs.download-artifact-pattern }}
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: ${{ inputs.download-artifact-name }}
pattern: ${{ inputs.download-artifact-pattern }}
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:

- name: Publish artifact
if: ${{ inputs.upload-artifact-name }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ${{ inputs.upload-artifact-name }}-node-${{ matrix.node-version }}
path: ${{ inputs.upload-artifact-path }}
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 1

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version: 24.x

- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v5
with:
package_json_file: docs/package.json

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prod-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate bot token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3
id: app_token
with:
app-id: ${{ secrets.BOT_ID }}
private-key: ${{ secrets.BOT_SK }}

- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
# Fetch entire repository history so we can determine version number from it
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-devportal-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:

- uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24.x

- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v5
with:
package_json_file: docs/package.json

Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ permissions:
issues: write
pull-requests: write
checks: write
id-token: write

jobs:
ci:
Expand All @@ -29,27 +30,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate bot token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3
id: app_token
with:
app-id: ${{ secrets.BOT_ID }}
private-key: ${{ secrets.BOT_SK }}

- name: Clone repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ steps.app_token.outputs.token }}

- name: Use Node.js 22.x
uses: actions/setup-node@v4
- name: Use Node.js 24.x
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version: 24.x

- run: npm ci --ignore-scripts

- name: Download package artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
pattern: '*-node-22.x'
path: artifacts
Expand All @@ -73,21 +74,21 @@ jobs:
npm pkg set version=$newVersion

- name: Publish @algorandfoundation/algorand-typescript
uses: JS-DevTools/npm-publish@v3
uses: JS-DevTools/npm-publish@v4
id: publish-algo-ts
with:
token: ${{ secrets.NPM_TOKEN }}
package: artifacts/algo-ts/package.json
access: 'public'
provenance: true
tag: ${{ github.ref_name == 'alpha' && 'alpha' || github.ref_name == 'main' && 'beta' || github.ref_name == 'release' && 'latest' || 'pre-release' }}

- name: Publish @algorandfoundation/puya-ts
uses: JS-DevTools/npm-publish@v3
uses: JS-DevTools/npm-publish@v4
id: publish-puya-ts
with:
token: ${{ secrets.NPM_TOKEN }}
package: artifacts/puya-ts/package.json
access: 'public'
provenance: true
tag: ${{ github.ref_name == 'alpha' && 'alpha' || github.ref_name == 'main' && 'beta' || github.ref_name == 'release' && 'latest' || 'pre-release' }}

publish-docs:
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "1.0.0",
"description": "Compiles Algorand TypeScript into byte code which runs on the Algorand Virtual Machine (AVM)",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/algorandfoundation/puya-ts.git"
},
"types": "src/index.ts",
"scripts": {
"postinstall": "npm run algo-ts",
Expand Down
5 changes: 5 additions & 0 deletions packages/algo-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"version": "1.0.0",
"description": "This package contains definitions for the types which comprise Algorand TypeScript which can be compiled to run on the Algorand Virtual Machine using the Puya compiler.",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/algorandfoundation/puya-ts.git",
"directory": "packages/algo-ts"
},
"main": "index.js",
"types": "src/index.ts",
"scripts": {
Expand Down
Loading