Compare commits

..

23 Commits

Author SHA1 Message Date
mashal-m
b5dffad10d fix: add push and pr command 2023-02-27 16:34:22 +05:00
mashal-m
72f90f49c1 fix: add build job 2023-02-27 16:30:27 +05:00
mashal-m
08cf5fb3d5 fix: add build job 2023-02-27 16:28:10 +05:00
mashal-m
3b5a2e920f fix: add build job 2023-02-27 16:26:26 +05:00
mashal-m
018aea6a34 fix: add build job 2023-02-27 16:24:00 +05:00
mashal-m
e8e7ca8948 fix: fix yml issue 2023-02-27 14:59:27 +05:00
mashal-m
b1546638c4 fix: fix yml issue 2023-02-27 14:56:05 +05:00
mashal-m
cfb08bc933 fix: specify on push 2023-02-27 14:53:17 +05:00
mashal-m
e66a99769d fix: add pull req 2023-02-27 14:25:55 +05:00
mashal-m
2a2713be63 fix: remove pull req 2023-02-27 14:24:39 +05:00
mashal-m
5900d84b9f fix: add semantic release in test job 2023-02-27 13:50:54 +05:00
mashal-m
3c168919cf fix: add semantic release in test job 2023-02-26 00:30:50 +05:00
mashal-m
5ac0035fe4 fix: run next version flow 2023-02-25 20:30:53 +05:00
mashal-m
109643fd76 feat: add semantic release 2023-02-25 00:35:41 +05:00
mashal-m
69a4580b71 feat: add semantic release 2023-02-25 00:34:25 +05:00
mashal-m
96373856ff refactor: add name of flow 2023-02-25 00:22:32 +05:00
mashal-m
5357b87c7c refactor: add name of flow 2023-02-24 23:34:40 +05:00
mashal-m
4940a0145f refactor: add name of flow 2023-02-24 23:25:52 +05:00
mashal-m
45c749286e refactor: only new package config 2023-02-24 23:16:44 +05:00
mashal-m
d52c9c81a1 refactor: add node support 2023-02-24 22:56:36 +05:00
mashal-m
cb7d13edb1 refactor: add node support 2023-02-24 22:50:37 +05:00
mashal-m
2e188af447 refactor: add semantic release 2023-02-24 17:21:25 +05:00
mashal-m
e2c6f72004 refactor: add semantic release pkg 2023-02-24 17:19:02 +05:00
8 changed files with 10785 additions and 1271 deletions

View File

@@ -16,4 +16,4 @@ jobs:
secrets:
GITHUB_APP_ID: ${{ secrets.GRAPHQL_AUTH_APP_ID }}
GITHUB_APP_PRIVATE_KEY: ${{ secrets.GRAPHQL_AUTH_APP_PEM }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }}

View File

@@ -1,20 +0,0 @@
# This workflow runs when a comment is made on the ticket
# If the comment starts with "label: " it tries to apply
# the label indicated in rest of comment.
# If the comment starts with "remove label: ", it tries
# to remove the indicated label.
# Note: Labels are allowed to have spaces and this script does
# not parse spaces (as often a space is legitimate), so the command
# "label: really long lots of words label" will apply the
# label "really long lots of words label"
name: Allows for the adding and removing of labels via comment
on:
issue_comment:
types: [created]
jobs:
add_remove_labels:
uses: openedx/.github/.github/workflows/add-remove-label-on-comment.yml@master

View File

@@ -7,6 +7,40 @@ on:
branches:
- '**'
jobs:
get-next-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npx semantic-release --dry-run
id: get-next-version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
new-release-published: ${{ steps.get-next-version.outputs.new-release-published }}
new-release-version: ${{ steps.get-next-version.outputs.new-release-version }}
build:
runs-on: ubuntu-latest
needs: get-next-version
if: needs.get-next-version.outputs.new-release-published == 'true'
steps:
- uses: actions/checkout@v3
- run: echo "The new release version is ${{ needs.get-next-version.outputs.new-release-version }}"
release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tests:
runs-on: ubuntu-latest
strategy:

View File

@@ -1,12 +0,0 @@
# This workflow runs when a comment is made on the ticket
# If the comment starts with "assign me" it assigns the author to the
# ticket (case insensitive)
name: Assign comment author to ticket if they say "assign me"
on:
issue_comment:
types: [created]
jobs:
self_assign_by_comment:
uses: openedx/.github/.github/workflows/self-assign-issue.yml@master

View File

@@ -1,6 +1,7 @@
{
"branch": "master",
"tagFormat": "v${version}",
"plugins": ["semantic-release-export-data"],
"verifyConditions": [
"@semantic-release/npm",
{

View File

@@ -1,9 +1,11 @@
export TRANSIFEX_RESOURCE = frontend-component-header
transifex_resource = frontend-component-header
transifex_langs = "ar,fr,es_419,zh_CN,pt,it,de,uk,ru,hi,fr_CA"
transifex_utils = ./node_modules/.bin/transifex-utils.js
i18n = ./src/i18n
transifex_input = $(i18n)/transifex_input.json
tx_url1 = https://www.transifex.com/api/2/project/edx-platform/resource/$(transifex_resource)/translation/en/strings/
tx_url2 = https://www.transifex.com/api/2/project/edx-platform/resource/$(transifex_resource)/source/
# This directory must match .babelrc .
transifex_temp = ./temp/babel-plugin-react-intl
@@ -40,11 +42,11 @@ push_translations:
# Pushing strings to Transifex...
tx push -s
# Fetching hashes from Transifex...
./node_modules/@edx/reactifex/bash_scripts/get_hashed_strings_v3.sh
./node_modules/reactifex/bash_scripts/get_hashed_strings.sh $(tx_url1)
# Writing out comments to file...
$(transifex_utils) $(transifex_temp) --comments --v3-scripts-path
$(transifex_utils) $(transifex_temp) --comments
# Pushing comments to Transifex...
./node_modules/@edx/reactifex/bash_scripts/put_comments_v3.sh
./node_modules/reactifex/bash_scripts/put_comments.sh $(tx_url2)
# Pulls translations from Transifex.
pull_translations:

11958
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -37,14 +37,13 @@
"@edx/browserslist-config": "^1.1.1",
"@edx/frontend-build": "^12.4.19",
"@edx/frontend-platform": "^3.0.1",
"@edx/reactifex": "^2.1.1",
"@testing-library/dom": "9.0.1",
"@testing-library/dom": "8.20.0",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "10.4.9",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.7",
"husky": "8.0.3",
"jest": "29.5.0",
"jest": "29.4.3",
"jest-chain": "1.1.6",
"prop-types": "15.8.1",
"react": "16.14.0",
@@ -52,15 +51,17 @@
"react-redux": "7.2.9",
"react-router-dom": "5.3.4",
"react-test-renderer": "16.14.0",
"reactifex": "1.1.1",
"redux": "4.2.1",
"redux-saga": "1.2.3"
"redux-saga": "1.2.2",
"semantic-release-export-data": "^1.0.1"
},
"dependencies": {
"@edx/paragon": "20.28.5",
"@fortawesome/fontawesome-svg-core": "6.3.0",
"@fortawesome/free-brands-svg-icons": "6.3.0",
"@fortawesome/free-regular-svg-icons": "6.3.0",
"@fortawesome/free-solid-svg-icons": "6.3.0",
"@edx/paragon": "20.28.4",
"@fortawesome/fontawesome-svg-core": "6.2.1",
"@fortawesome/free-brands-svg-icons": "6.2.1",
"@fortawesome/free-regular-svg-icons": "6.2.1",
"@fortawesome/free-solid-svg-icons": "6.2.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"babel-polyfill": "6.26.0",
"react-responsive": "8.2.0",