Skip to content

Commit

Permalink
Revert "Update release workflow"
Browse files Browse the repository at this point in the history
This reverts commit 41db90a.
  • Loading branch information
saltict committed Sep 27, 2023
1 parent 437dfcc commit 9f701f2
Show file tree
Hide file tree
Showing 6 changed files with 1,373 additions and 37 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Release
name: Publish Build
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
default: ''
push:
branches:
- master
- dev

jobs:
master:
if: "startsWith(github.event.head_commit.message, '[Release]')"
runs-on: ubuntu-22.04
name: Build and publish
steps:
Expand All @@ -34,18 +33,16 @@ jobs:
- name: Install dependencies and build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
VERSION: ${{ github.event.inputs.version }}
run: |
yarn install
yarn set-version ${{ VERSION }}
yarn publish:${{ steps.input_data.outputs.target }}
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Github-Bot
author_email: [email protected]
message: 'Release version ${{ VERSION }}'
message: 'Update data after publish:${{ steps.input_data.outputs.target }}'

- name: Notify to Discord
uses: sarisia/actions-status-discord@v1
Expand All @@ -57,4 +54,4 @@ jobs:
title: ${{ github.workflow }}
description: |
The deployment has been completed.
Release version ${{ VERSION }}
Commit message: ${{ github.event.head_commit.message }}
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"sideEffects": false,
"type": "module",
"version": "0.2.14",
"versions": {
"git": "0.2.14",
"npm": "0.2.14"
},
"workspaces": [
"packages/*"
],
Expand All @@ -19,14 +23,14 @@
"export-chains": "./scripts/exports/export-chains.js",
"export-xcm-channels": "./scripts/exports/export-xcm-channels.js",
"generate-logo-map": "./scripts/generators/generate-logo-map.js",
"generate-multi-chain-asset-logo": "./scripts/generators/generate-multi-chain-asset-logo.js",
"set-version": "./scripts/set-version.mjs",
"subwallet-ci-ghact-build": "./scripts/subwallet-ci-ghact-build.mjs",
"subwallet-dev-build-ts": "./scripts/subwallet-dev-build-ts.mjs",
"validate-asset-refs": "./scripts/validations/validate-asset-refs.js",
"validate-chains": "./scripts/validations/validate-chains.js",
"validate-tokens": "./scripts/validations/validate-tokens.js"
},
"scripts": {
"build": "yarn generate-multi-chain-asset-logo && yarn generate-logo-map && subwallet-dev-build-ts && cp -r packages/chain-list/build/data packages/chain-list/build/cjs",
"build": "yarn generate-logo-map && subwallet-dev-build-ts && cp -r packages/chain-list/build/data packages/chain-list/build/cjs",
"build:beta": "BRANCH_NAME=dev yarn build",
"build:extra": "",
"build:latest": "BRANCH_NAME=master yarn build",
Expand Down
21 changes: 0 additions & 21 deletions scripts/set-version.mjs

This file was deleted.

Loading

0 comments on commit 9f701f2

Please sign in to comment.