Skip to content

The package's name is (supposed to be) sync-message-port (#3) #10

The package's name is (supposed to be) sync-message-port (#3)

The package's name is (supposed to be) sync-message-port (#3) #10

Workflow file for this run

name: CI
defaults:
run: {shell: bash}
env:
PROTOC_VERSION: 3.x
on:
push:
branches: [main, feature.*]
tags: ['**']
pull_request:
jobs:
static_analysis:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
check-latest: true
- run: npm install
- run: npm run check
tests:
name: 'Tests | Node ${{ matrix.node-version }} | ${{ matrix.os }}'
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
node-version: ['lts/*', 'lts/-1', 'lts/-2']
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- run: npm install
- run: npm run test
deploy:
name: Deploy
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/sync-message-port'"
needs: [static_analysis, tests, sass_spec]

Check failure on line 52 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 52, Col: 37): Job 'deploy' depends on unknown job 'sass_spec'. .github/workflows/ci.yml (Line: 69, Col: 13): Job 'typedoc' depends on job 'deploy' which creates a cycle in the dependency graph.
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
check-latest: true
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
typedoc:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/sync-message-port'"
needs: [deploy]
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
check-latest: true
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run doc
- name: Upload static files as artifact
uses: actions/upload-pages-artifact@v3
with: {path: docs}
- id: deployment
uses: actions/deploy-pages@v4