Skip to content

Commit a4d39c2

Browse files
authored
Fix publishing to NPM in the release CI (#715)
1 parent 1e6e6d6 commit a4d39c2

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,17 @@ jobs:
9797
- uses: actions/checkout@v2
9898
- uses: actions/setup-node@v1
9999
with:
100-
node-version: 10
101-
- name: Prepare publish
100+
node-version: 14
101+
- name: Publish to NPM
102102
shell: bash
103+
env:
104+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105+
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
103106
run: |
104107
sed -e "s/NPM_VERSION/$(./scripts/get-version)/g" -i npm/package.json
105108
sed -e "s/PACKAGE_VERSION/$(./scripts/get-version)/g" -i npm/install.js
106109
cd npm
107110
cp ../README.md ./README.md
108111
cp ../CONTRIBUTING.md ./CONTRIBUTING.md
109112
cp ../LICENSE ./LICENSE
110-
- name: Publish to NPM
111-
uses: pascalgn/[email protected]
112-
with:
113-
workspace: "npm"
114-
publish_args: "--non-interactive"
115-
env:
116-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117-
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
113+
npm publish --non-interactive

CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
- Add `exec-args` as alias to `node-args`, to clarify that the args are
11-
forwarded to whichever backend is being targeted (go, js, etc), not
12-
exclusively node.
13-
14-
## [0.18.0] - 2020-12-07
10+
## [0.18.0] - 2020-12-22
1511

1612
Breaking changes (😱!!!):
1713
- **Remove `login` command (#705)**
@@ -27,6 +23,11 @@ Breaking changes (😱!!!):
2723
While the upstream package sets have been patched to be compatible with the change, this is a breaking change
2824
for all the existing configurations that make use of Dhall reserved words (such as `assert`, `let`, etc).
2925

26+
New features:
27+
- Add `exec-args` as alias to `node-args`, to clarify that the args are
28+
forwarded to whichever backend is being targeted (go, js, etc), not
29+
exclusively NodeJS (#710, #709)
30+
3031
Bugfixes:
3132
- Don't create the global cache folder at all if the user specifies `--global-cache=skip` (#705, 704)
3233
- Don't require a `spago.dhall` anymore when the `--no-build` flag is passed (#705, 634)

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extra-deps:
55
- async-pool-0.9.1@sha256:4015140f896c3f1652b06a679b0ade2717d05557970c283ea2c372a71be2a6a1,1605
66
- base-compat-0.11.1@sha256:e49c1ce84f556621ef1142a169e4349049c516f5b3e3c3ec6830be503e7d4a93,7140
77
- binary-instances-1.0.0.1@sha256:e234be994da675479a3661f050d4a1d53565c9ed7786d9a68b7a29ba8b54b5a7,2659
8-
- dhall-1.37.0
8+
- dhall-1.37.1
99
- directory-1.3.6.1@sha256:3dc9c69c8e09ec95a7a45c6d06abe0f0d2f604439c37e5f88e5a6c335b088d71,2810
1010
- generic-lens-2.0.0.0@sha256:7409fa0ce540d0bd41acf596edd1c5d0c0ab1cd1294d514cf19c5c24e8ef2550,3866
1111
- generic-lens-core-2.0.0.0@sha256:40b063c4a1399b3cdb19f2df1fae5a1a82f3313015c7c3e47fc23b8ef1b3e443,2913

0 commit comments

Comments
 (0)