Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c8c452d
set always-auth true
msivasubramaniaan Jul 10, 2025
faf74ec
added registry url and release ci on main push for testing
msivasubramaniaan Jul 11, 2025
686223b
removed main push
msivasubramaniaan Jul 11, 2025
dad55d1
renamed to NPM_TOKEN
msivasubramaniaan Jul 11, 2025
975d005
Merge branch 'main' into fix-npm-auth
msivasubramaniaan Jul 11, 2025
0e4fc7e
used YARN_NPM_AUTH_TOKEN
msivasubramaniaan Jul 11, 2025
2301a09
used npm_token
msivasubramaniaan Jul 11, 2025
0e96307
used YARN_NPM_AUTH_TOKEN
msivasubramaniaan Jul 14, 2025
4f2a326
added registry-url
msivasubramaniaan Jul 14, 2025
24152a9
tried NODE_AUTH_TOKEN
msivasubramaniaan Jul 14, 2025
9000072
created .npmrc file
msivasubramaniaan Jul 14, 2025
a09466d
removed .npmrc
msivasubramaniaan Jul 14, 2025
bb5fb6c
check NODE_AUTH_TOKEN available or not
msivasubramaniaan Jul 14, 2025
79d07e2
moved the check code on top
msivasubramaniaan Jul 14, 2025
47b7c8f
checked NPM_TOKEN
msivasubramaniaan Jul 14, 2025
75f1b0a
tried with NODE_AUTH_TOKEN
msivasubramaniaan Jul 14, 2025
98116cd
Try with NPM instead of YARN
msivasubramaniaan Jul 15, 2025
ff29efb
switch to npm
msivasubramaniaan Jul 15, 2025
0144038
removed install command
msivasubramaniaan Jul 15, 2025
984ea98
fix build issue
msivasubramaniaan Jul 15, 2025
4c0e075
fix build issue
msivasubramaniaan Jul 15, 2025
fd574cd
done pkg fix
msivasubramaniaan Jul 15, 2025
abda1db
Completely moved to npm from yarn
msivasubramaniaan Jul 15, 2025
28549d9
Merge branch 'main' into fix-npm-auth
msivasubramaniaan Jul 15, 2025
4104b0c
review comments addressed
msivasubramaniaan Jul 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ jobs:

# Run install dependencies
- name: Install dependencies
run: yarn
run: npm ci

# Build extension
- name: Run build
run: yarn build
run: npm run build

- name: Generate SARIF
if: matrix.os == 'ubuntu-latest'
run: yarn lint-ci
run: npm run lint-ci

- name: Upload SARIF file
if: matrix.os == 'ubuntu-latest'
Expand All @@ -65,7 +65,7 @@ jobs:
- name: Run Test
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1
with:
run: yarn coveralls
run: npm run coveralls

# Run Coveralls
- name: Coveralls
Expand All @@ -75,11 +75,7 @@ jobs:

- name: Publish
if: ${{ success() && runner.os == 'Linux' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
run: |
yarn config set npmRegistryServer "https://registry.npmjs.org"
yarn config set npmAlwaysAuth true
yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }}
yarn publish --tag next --no-git-tag-version --prepatch --preid "$(git rev-parse --short HEAD)"
run: npm publish --tag next --no-git-tag-version --prepatch --preid "$(git rev-parse --short HEAD)"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
25 changes: 10 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,27 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20

registry-url: 'https://registry.npmjs.org'

# Run install dependencies
- name: Install dependencies
run: yarn
run: npm ci

# Build extension
- name: Run build
run: yarn build
run: npm run build

# Run tests
- name: Run Test
run: yarn test

# Check dependencies
- name: Run Check-Dependencies
run: yarn check-dependencies
run: npm test

- name: Set Publish Auth
run: |
yarn config set npmRegistryServer "https://registry.npmjs.org"
yarn config set npmAlwaysAuth true
yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }}
# Check Dependencies
- name: Run Check Dependencies
run: npm run check-dependencies

#Publish to npm
# Publish to npm
- name: Publish to npm
run: yarn publish --access public
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ out/server
yarn-error.log
coverage
lib/
package-lock.json
eslint-result.sarif
yarn.lock
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ WORKDIR /yaml-language-server

COPY . .

RUN yarn install && \
yarn run build
RUN npm install && \
npm run build

ENTRYPOINT [ "node", "./out/server/src/server.js" ]
CMD [ "--stdio" ]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ This repository only contains the server implementation. Here are some known cli
3. Install the dependencies
```bash
cd yaml-language-server
$ yarn install
$ npm install
```
4. Build the language server
```bash
$ yarn run build
$ npm run build
```
5. The new built server is now located in ./out/server/src/server.js.
```bash
Expand Down
Loading
Loading