Skip to content

Commit

Permalink
Merge pull request #959 from keesschollaart81/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Feb 1, 2021
2 parents 1a5cff7 + 438700f commit 459d91b
Show file tree
Hide file tree
Showing 8 changed files with 1,374 additions and 735 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/github-actions-language-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,41 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]

- name: Use Node.js 12.x
uses: actions/setup-node@master
- name: 🏗 Set up NodeJS
uses: actions/setup-node@v2.1.4
with:
node-version: 12.x
node-version: "14"

- name: NPM Install
- name: 🏗 Install NodeJS packages
working-directory: src/language-service
run: |
rm package-lock.json
npm install
run: npm install

- name: NPM Lint
- name: 🚀 Run Linter
working-directory: src/language-service
run: npm run lint

- name: NPM Compile
- name: 🚀 Run Compile
working-directory: src/language-service
run: npm run compile

- name: Create .npmrc
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc
- name: 🏗 Create .npmrc
if: success() && github.ref == 'refs/heads/master'
run:
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: NPM Publish to Registry
- name: 🚀 Publish to NPM Registry
if: success() && github.ref == 'refs/heads/master'
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm publish src/language-service
# - name: NPM Publish to Registry
# uses: actions/npm@master
# if: success() && github.ref == 'refs/heads/master'
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/github-actions-vscode-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]

- name: Use Node.js 12.x
uses: actions/setup-node@v1
- name: 🏗 Set up NodeJS
uses: actions/setup-node@v2.1.4
with:
node-version: 12.x
node-version: "14"

- name: NPM Install & Compile
- name: 🏗 Install NodeJS packages
run: npm install

- name: NPM Lint
- name: 🚀 Run Linter
run: npm run lint

- name: NPM Compile
- name: 🚀 Run Compile
run: npm run compile

- name: VS Marketplace Publish
- name: 🚀 VSCode Marketplace Publish
if: success() && github.ref == 'refs/heads/master'
run: |
npm install -g vsce
Expand Down
Loading

0 comments on commit 459d91b

Please sign in to comment.