Skip to content

Commit

Permalink
chore: update actions and fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
GImbrailo committed Jun 4, 2024
1 parent 19adca7 commit eebcacf
Show file tree
Hide file tree
Showing 6 changed files with 232 additions and 239 deletions.
46 changes: 21 additions & 25 deletions .github/workflows/bundle_webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,25 @@ jobs:
bundle-webpack:
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
uses: actions/checkout@v2
-
uses: actions/setup-node@v2
with:
node-version: lts/hydrogen
- run: npm ci
- run: npm run build
- run: npm -w packages/taquito-local-forging run build-webpack
-
uses: actions/upload-artifact@v3
with:
name: taquito-local-forging-vanilla
path: |
packages/taquito-local-forging/dist/taquito_local_forging.js
packages/taquito-local-forging/dist/taquito_local_forging.js.map
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/hydrogen
- run: npm ci
- run: npm run build
- run: npm -w packages/taquito-local-forging run build-webpack
- uses: actions/upload-artifact@v3
with:
name: taquito-local-forging-vanilla
path: |
packages/taquito-local-forging/dist/taquito_local_forging.js
packages/taquito-local-forging/dist/taquito_local_forging.js.map
- run: npm -w packages/taquito-beacon-wallet run build-webpack
-
uses: actions/upload-artifact@v3
with:
name: taquito-beacon-wallet-vanilla
path: |
packages/taquito-beacon-wallet/dist/taquito_beacon_wallet.js
packages/taquito-beacon-wallet/dist/taquito_beacon_wallet.js.map
- run: npm -w packages/taquito-beacon-wallet run build-webpack
- uses: actions/upload-artifact@v3
with:
name: taquito-beacon-wallet-vanilla
path: |
packages/taquito-beacon-wallet/dist/taquito_beacon_wallet.js
packages/taquito-beacon-wallet/dist/taquito_beacon_wallet.js.map
62 changes: 31 additions & 31 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
Expand All @@ -23,33 +23,33 @@ jobs:
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
config-file: ./.github/codeql/codeql-config.yml
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
config-file: ./.github/codeql/codeql-config.yml
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
50 changes: 25 additions & 25 deletions .github/workflows/deploy_edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ jobs:
env:
VERDACCIO_TOKEN: ${{ secrets.EDGE_VERDACCIO_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts/hydrogen
- run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- run: echo "PACKAGE_VERSION=`node -p "require('./packages/taquito/package.json').version"`" >> $GITHUB_ENV
- run: echo "BRANCH_NAME=$(git branch --show-current)" >> $GITHUB_ENV
- run: echo "TARGET_VERSION=${PACKAGE_VERSION}-${SHORT_SHA}--${BRANCH_NAME}" >> $GITHUB_ENV
- run: npm ci
- run: find packages/ -mindepth 1 -maxdepth 2 -name README.md | xargs sed -i '1s/^/# WARNING This build is produced from a feature branch and could contain unreviewed changes from the public. Use with caution, do not use in production\n\n/'
- run: npx lerna version "${TARGET_VERSION}" --no-push --no-git-tag-version --yes
- run: npm run version-stamp
- run: npm run build
- run: npm run -w @taquito/taquito build:release
- run: git config user.email "[email protected]" && git config user.name "Github Actions"
- run: git add . && git commit -m "committing changes to files to make lerna happy in next step, this is expected to never be pushed to remote"
- run: echo ${VERDACCIO_TOKEN} >> ~/.npmrc
- run: npx lerna publish --dist-tag edge from-package --yes --registry https://npm.preview.tezostaquito.io/
- if: ${{ github.event_name == 'pull_request' }}
run: |
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/hydrogen
- run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- run: echo "PACKAGE_VERSION=`node -p "require('./packages/taquito/package.json').version"`" >> $GITHUB_ENV
- run: echo "BRANCH_NAME=$(git branch --show-current)" >> $GITHUB_ENV
- run: echo "TARGET_VERSION=${PACKAGE_VERSION}-${SHORT_SHA}--${BRANCH_NAME}" >> $GITHUB_ENV
- run: npm ci
- run: find packages/ -mindepth 1 -maxdepth 2 -name README.md | xargs sed -i '1s/^/# WARNING This build is produced from a feature branch and could contain unreviewed changes from the public. Use with caution, do not use in production\n\n/'
- run: npx lerna version "${TARGET_VERSION}" --no-push --no-git-tag-version --yes
- run: npm run version-stamp
- run: npm run build
- run: npm run -w @taquito/taquito build:release
- run: git config user.email "[email protected]" && git config user.name "Github Actions"
- run: git add . && git commit -m "committing changes to files to make lerna happy in next step, this is expected to never be pushed to remote"
- run: echo ${VERDACCIO_TOKEN} >> ~/.npmrc
- run: npx lerna publish --dist-tag edge from-package --yes --registry https://npm.preview.tezostaquito.io/
- if: ${{ github.event_name == 'pull_request' }}
run: |
echo "COMMENT_BODY<<EOF" >> $GITHUB_ENV
echo "New packages have been deployed to the preview repository at https://npm.preview.tezostaquito.io/." >> $GITHUB_ENV
echo "" >> $GITHUB_ENV
Expand All @@ -45,8 +45,8 @@ jobs:
find packages/ -mindepth 1 -maxdepth 2 -name package.json | xargs -I{} node -pe "require('./{}')['name']" | sed "s/^\(.*\)$/npm i \1@${TARGET_VERSION} --registry https:\/\/npm.preview.tezostaquito.io\//" >> $GITHUB_ENV
echo "\`\`\`" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- if: ${{ github.event_name == 'pull_request' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: deploy-packages
message: ${{ env.COMMENT_BODY }}
- if: ${{ github.event_name == 'pull_request' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: deploy-packages
message: ${{ env.COMMENT_BODY }}
46 changes: 23 additions & 23 deletions .github/workflows/deploy_test_dapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,28 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/hydrogen
- run: npm ci
- run: npm run build
- run: npm -w taquito-test-dapp-vite run build
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/hydrogen
- run: npm ci
- run: npm run build
- run: npm -w taquito-test-dapp-vite run build

- name: Publish to Cloudflare Pages
id: cloudflare_publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
projectName: taquito-test-dapp
directory: apps/taquito-test-dapp/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'
- name: Publish to Cloudflare Pages
id: cloudflare_publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
projectName: taquito-test-dapp
directory: apps/taquito-test-dapp/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'

# Notify the PR of the deploy preview
- uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
header: Test Dapp Preview
message: 'A new deploy preview is available on Cloudflare Pages at ${{ steps.cloudflare_publish.outputs.URL }}'
# Notify the PR of the deploy preview
- uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
header: Test Dapp Preview
message: 'A new deploy preview is available on Cloudflare Pages at ${{ steps.cloudflare_publish.outputs.URL }}'
Loading

0 comments on commit eebcacf

Please sign in to comment.