mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
update
This commit is contained in:
parent
ad133f2229
commit
98ebeec44e
2 changed files with 10 additions and 2 deletions
10
.github/workflows/template_initialization.yaml
vendored
10
.github/workflows/template_initialization.yaml
vendored
|
|
@ -29,6 +29,14 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: mv README.template.md README.md
|
- run: mv README.template.md README.md
|
||||||
|
- name : String replace
|
||||||
|
id: id2
|
||||||
|
uses: garronej/github_actions_toolkit@master
|
||||||
|
with:
|
||||||
|
action_name: string_replace
|
||||||
|
input_string: ${{github.event.repository.name}}
|
||||||
|
search_value: '-'
|
||||||
|
replace_value: '_'
|
||||||
- name: Replace tokens in README.MD and package.json
|
- name: Replace tokens in README.MD and package.json
|
||||||
uses: cschleiden/replace-tokens@v1
|
uses: cschleiden/replace-tokens@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -37,7 +45,7 @@ jobs:
|
||||||
REPO_NAME: ${{ github.event.repository.name }}
|
REPO_NAME: ${{ github.event.repository.name }}
|
||||||
USER_OR_ORG: ${{ github.repository_owner }}
|
USER_OR_ORG: ${{ github.repository_owner }}
|
||||||
DESC: ${{ github.event.repository.description }}
|
DESC: ${{ github.event.repository.description }}
|
||||||
REPO_NAME_NO_DASHES: ${{ TODO }}
|
REPO_NAME_NO_DASHES: ${{ steps.id1.outputs.replace_result }}
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
- name: Update pre-configured dev dependencies
|
- name: Update pre-configured dev dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ Expose a global ( wider browser support):
|
||||||
```html
|
```html
|
||||||
<script src="//unpkg.com/#{REPO_NAME}#/umd_bundle.min.js"></script>
|
<script src="//unpkg.com/#{REPO_NAME}#/umd_bundle.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var myFunction = #{REPO_NAME_NO_DASHES}.myFunction;
|
var myFunction = #{REPO_NAME_NO_DASHES}#.myFunction;
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue