Skip to content

Commit f8b4ca3

Browse files
fix: fixed bugs introduced with incompatibilities with github actions and nunjucks
1 parent cfeac89 commit f8b4ca3

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v3
2222
with:
23-
token:
23+
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
2424
submodules: true
2525
- name: Extract version from package.json
2626
uses: sergeysova/jq-action@v2
@@ -29,12 +29,12 @@ jobs:
2929
cmd: 'jq .version package.json -r'
3030

3131
- name: Show my version
32-
run: 'echo "version "'
32+
run: 'echo "version ${{ steps.version.outputs.value }}"'
3333

3434
- name: Setup Node.js environment
3535
uses: actions/[email protected]
3636
with:
37-
node-version: ""
37+
node-version: "${{ env.NODE_VERSION }}"
3838
registry-url: "https://registry.npmjs.org"
3939
cache: yarn
4040
- name: Yarn install
@@ -47,6 +47,6 @@ jobs:
4747
- name: Build
4848
run: yarn build
4949
- name: Publish
50-
run: yarn publish --access public --non-interactive --new-version
50+
run: yarn publish --access public --non-interactive --new-version ${{ steps.version.outputs.value }}
5151
env:
52-
NODE_AUTH_TOKEN:
52+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release-please.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212
with:
13-
token: ${{ secrets.GITHUB_TOKEN }}
13+
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
1414
submodules: true
15-
- name: Extract version from package.json
15+
- name: Extract package name from package.json
1616
uses: sergeysova/jq-action@v2
1717
id: package
1818
with:
1919
cmd: 'jq .name package.json -r'
2020
- uses: google-github-actions/release-please-action@v3
2121
with:
22-
token:
22+
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
2323
release-type: node
24-
package-name:
24+
package-name: ${{ steps.package.outputs.value }}

.github/workflows/test.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v3
18-
with:
19-
token:
20-
submodules: true
21-
- name: Setup Node.js environment
22-
uses: actions/[email protected]
23-
with:
24-
node-version: ""
25-
cache: yarn
26-
- name: Yarn install
27-
run: |
28-
yarn install --frozen-lockfile
29-
- name: Lint
30-
run: yarn lint
31-
- name: Test
32-
run: yarn test --passWithNoTests
17+
- uses: actions/checkout@v3
18+
with:
19+
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
20+
submodules: true
21+
- name: Setup Node.js environment
22+
uses: actions/[email protected]
23+
with:
24+
node-version: "${{ env.NODE_VERSION }}"
25+
cache: yarn
26+
- name: Yarn install
27+
run: |
28+
yarn install --frozen-lockfile
29+
- name: Lint
30+
run: yarn lint
31+
- name: Test
32+
run: yarn test --passWithNoTests

0 commit comments

Comments
 (0)