Skip to content

Commit 2260384

Browse files
Add TypeScript headers and missing tests
1 parent d2f3fdb commit 2260384

File tree

2 files changed

+18
-27
lines changed

2 files changed

+18
-27
lines changed

.github/workflows/publish-egg.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,39 @@
1-
name: Publish Egg
1+
name: Publish
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
version:
7-
description: "Version"
8-
required: true
94
release:
105
types: [published]
116

127
jobs:
8+
update-readme:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/tags/*}
13+
- run: |
14+
cat ./README.md | sed -e "s/https\:\/\/deno.land\/x\/functional\@[v0-9\.]*/https\:\/\/deno.land\/x\/functional\@${RELEASE_VERSION}/" | tee ./README.md > /dev/null
15+
cat ./README.md | sed -e "s/https\:\/\/x.nest.land\/functional\@[v0-9\.]*/https\:\/\/x.nest.land\/functional\@${RELEASE_VERSION}/" | tee ./README.md > /dev/null
16+
- run: |
17+
git config --local user.email "[email protected]"
18+
git config --local user.name "GitHub Action"
19+
git add .
20+
git commit --amend --no-edit
21+
git push https://${{ env.GITHUB_ACTOR }}:${{ secrets.GITHUB_TOKEN }}@github.com/sebastienfilion/functional.git HEAD:master --force
1322
publish-egg:
1423
runs-on: ubuntu-latest
1524
steps:
1625
- uses: actions/checkout@v2
1726
- uses: denolib/setup-deno@master
1827
with:
1928
deno-version: 1.4.2
29+
- run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/tags/*}
2030
- run: deno install -A -f --unstable -n eggs https://x.nest.land/[email protected]/mod.ts
2131
- run: >
2232
export PATH="/home/runner/.deno/bin:$PATH"
2333
&& eggs link ${{ secrets.NESTAPIKEY }}
2434
&& eggs publish functional
2535
--description "Common Functional Programming Algebraic data types for JavaScript that is compatible with most modern browsers and Deno."
26-
--version {{ INPUT_VERSION }}
36+
--version ${{ env.RELEASE_VERSION }}
2737
--entry ./mod.js
28-
--files ./* ./.github/README.md
38+
--files ./README.md ./mod.js ./mod.ts ./library/**/*
2939
--no-check-all

.github/workflows/scratch.yml

-19
This file was deleted.

0 commit comments

Comments
 (0)