diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 637d604..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,70 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ develop ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ develop ] - schedule: - - cron: '22 11 * * 0' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'javascript' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://git.io/codeql-language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # 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@v1 - - # ℹī¸ 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@v1 diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 22c8a38..7619fa1 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,6 +1,3 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - name: Node.js CI on: @@ -10,20 +7,40 @@ on: branches: [ master, develop ] jobs: - build: - + build-package: runs-on: ubuntu-latest - strategy: matrix: node-version: [14.x, 16.x, 18.x] steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install -g yarn - - run: yarn - - run: yarn test + - name: Checkout + uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - run: npm install -g yarn + - run: yarn + - run: yarn test + + build-ui: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.3.1 + + - name: Setup Node.js v16.x + uses: actions/setup-node@v1 + with: + node-version: 16.x + + - name: Install and build + run: | + yarn + cd packages/abi-to-sol + yarn prepare + cd ../web-ui + PUBLIC_URL=https://gnidan.github.io/abi-to-sol/ yarn build diff --git a/.github/workflows/web-ui.yml b/.github/workflows/web-ui.yml index 5d33f2b..1539a14 100644 --- a/.github/workflows/web-ui.yml +++ b/.github/workflows/web-ui.yml @@ -8,10 +8,15 @@ jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - name: Checkout 🛎ī¸ + - name: Checkout uses: actions/checkout@v2.3.1 - - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + - name: Setup Node.js v16.x + uses: actions/setup-node@v1 + with: + node-version: 16.x + + - name: Install and build run: | yarn cd packages/abi-to-sol @@ -19,9 +24,9 @@ jobs: cd ../web-ui PUBLIC_URL=https://gnidan.github.io/abi-to-sol/ yarn build - - name: Deploy 🚀 + - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.4 with: - branch: gh-pages # The branch the action should deploy to. - folder: packages/web-ui/build # The folder the action should deploy. + branch: gh-pages + folder: packages/web-ui/build diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a57051..50a24f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## vNext +### Project updates + +- Fix web UI deployment ([#112](https://github.com/gnidan/abi-to-sol/pull/112) + by [@gnidan](https://github.com/gnidan)) + ## v0.7.1 See [release notes](https://github.com/gnidan/abi-to-sol/releases/tag/v0.7.1).