@@ -61,17 +61,17 @@ jobs:
61
61
uses : actions/setup-node@v3
62
62
with :
63
63
node-version : ${{ matrix.node-version }}
64
- cache : ' yarn '
64
+ cache : ' npm '
65
65
- name : Log environment setup
66
66
run : |
67
67
node -v
68
- yarn -v
68
+ npm -v
69
69
- name : Install dependencies
70
- run : yarn install --ignore-engines
70
+ run : npm install
71
71
- name : Build templates
72
- run : yarn run build:templates
72
+ run : npm run build:templates
73
73
- name : Build library
74
- run : yarn run build
74
+ run : npm run build
75
75
76
76
publish :
77
77
runs-on : ubuntu-latest
@@ -97,12 +97,12 @@ jobs:
97
97
repo-token : " ${{ secrets.GITHUB_TOKEN }}"
98
98
tag : " ${{ env.version }}"
99
99
- name : Install dependencies
100
- run : yarn
100
+ run : npm install
101
101
- uses : actions/setup-node@v3
102
102
with :
103
103
registry-url : ' https://registry.npmjs.org'
104
104
node-version : ' 18.x'
105
- - name : Configure Yarn version
105
+ - name : Configure NPM version
106
106
env :
107
107
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
108
108
run : |
@@ -112,19 +112,17 @@ jobs:
112
112
echo "registry=https://registry.npmjs.org/" >> .npmrc
113
113
echo "access=public" >> .npmrc
114
114
echo "save-exact=true" >> .npmrc
115
- yarn config set version-tag-prefix ""
116
- yarn config set version-git-message "Release version %s"
117
115
- name : Version package
118
116
run : |
119
117
# Update version in packages to publish
120
- yarn version --non-interactive --new-version $(cat .version)
118
+ npm version $(cat .version) -m "Release version %s"
121
119
- name : Publish to NPM
122
- run : yarn publish --tag $(cat .tag) --non-interactive --new-version $(cat .version)
120
+ run : npm publish --tag $(cat .tag) diff2html@ $(cat .version)
123
121
- uses : actions/setup-node@v3
124
122
with :
125
123
node-version : ' 18.x'
126
124
registry-url : ' https://npm.pkg.github.com'
127
- - name : Configure Yarn version
125
+ - name : Configure NPM version
128
126
env :
129
127
NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
130
128
run : |
@@ -134,18 +132,16 @@ jobs:
134
132
echo "@rtfpessoa:registry=https://npm.pkg.github.com/" >> .npmrc
135
133
echo "access=public" >> .npmrc
136
134
echo "save-exact=true" >> .npmrc
137
- yarn config set version-tag-prefix ""
138
- yarn config set version-git-message "Release version %s"
139
135
- name : Version package
140
136
run : |
141
137
# Update version in packages to publish
142
- yarn version --non-interactive --new-version $(cat .version)
138
+ npm version $(cat .version) -m "Release version %s"
143
139
- name : Publish to GPR
144
140
run : |
145
141
# HACK: Override npm package name to be able to publish in GitHub
146
142
sed -i 's/^ "name":.*/ "name": "@rtfpessoa\/diff2html",/g' package.json
147
143
echo "Going to publish version $(cat .version) to GitHub"
148
- yarn publish --tag $(cat .tag) --non-interactive --new-version $(cat .version)
144
+ npm publish --tag $(cat .tag) diff2html@ $(cat .version)
149
145
# HACK: Restore npm package name
150
146
sed -i 's/^ "name":.*/ "name": "diff2html",/g' package.json
151
147
- name : Upload docs
0 commit comments