Skip to content

Move tag list tests to proper browsers interactions (#3791) #1658

Move tag list tests to proper browsers interactions (#3791)

Move tag list tests to proper browsers interactions (#3791) #1658

Workflow file for this run

name: Release
on:
push:
branches:
- main
- '[0-9]+.x'
- '[0-9]+.[0-9]+.x'
jobs:
release:
name: Release
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
with:
persist-credentials: false
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install dependencies
run: |
npm ci
npm install web-component-analyzer --no-save
- name: Build
run: npm run build
- name: Create custom-elements.json
run: npx wca analyze \"{components,templates}/**/*.js\" --format json --outFile custom-elements.json
- name: Semantic Release
uses: BrightspaceUI/actions/semantic-release@main
with:
GITHUB_TOKEN: ${{ secrets.D2L_GITHUB_TOKEN }}
MINOR_RELEASE_WITH_LMS: true
NPM: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
RALLY_API_KEY: ${{ secrets.RALLY_API_KEY }}
publish:
name: Publish static site
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
timeout-minutes: 10
needs: release
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Build static
run: npm run build-static
- name: Assume role
uses: Brightspace/third-party-actions@aws-actions/configure-aws-credentials
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
role-to-assume: arn:aws:iam::037018655140:role/brightspace-ui-core.d2l.dev-githubactions-access
role-duration-seconds: 3600
aws-region: ca-central-1
- name: Publish
uses: ./.github/actions/publish-to-s3/
with:
BUCKET_PATH: s3://brightspace-ui-core.d2l.dev/branches/main
PUBLISH_DIRECTORY: ./build/