v0.3.14 #137
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy and Publish | |
on: | |
release: | |
types: [published] | |
permissions: | |
id-token: write | |
contents: write | |
actions: read | |
jobs: | |
deploy-and-publish: | |
# Publish the packages (only when `-front` is NOT in the tag) | |
if: contains(github.event.release.tag_name, '-front') == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
registry-url: "https://registry.npmjs.org" | |
- run: npm ci | |
- run: npm run build | |
- name: publish programmable transaction blocks builder package | |
uses: JS-DevTools/npm-publish@v3 | |
id: ptb-builder | |
with: | |
access: public | |
provenance: true | |
token: ${{ secrets.NPM_TOKEN }} | |
package: "packages/ptb-builder/package.json" | |
strategy: upgrade | |
deploy-frontend: | |
# Frontend deployment step (only when `-front` IS in the tag) | |
if: contains(github.event.release.tag_name, '-front') == true | |
uses: zktx-io/walrus-sites-provenance/.github/workflows/deploy_with_slsa3.yml@v0.5.5 | |
with: | |
working-directory: './packages/example' | |
secrets: | |
GIT_SIGNER_PIN: ${{ secrets.GIT_SIGNER_PIN }} | |
ED25519_PRIVATE_KEY: ${{ secrets.ED25519_PRIVATE_KEY }} |