Skip to content

DevContainer Release #6

DevContainer Release

DevContainer Release #6

Workflow file for this run

# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: DevContainer Release
description: This workflow creates a semantic version release when main changed since the last release tag.
on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
permissions:
contents: read # for checkout
jobs:
release:
if: github.ref == 'refs/heads/main'
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
name: release
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/devcontainers/javascript-node:4-24
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
fetch-tags: true
# this should have been done by the checkout action, but it doesn't work in a container, see https://github.com/actions/checkout/issues/766
- run: git config --global --add safe.directory $PWD
# pinned version updated automatically by Dependabot.
# details at https://semantic-release.gitbook.io/semantic-release/usage/installation#global-installation
- run: npx semantic-release@25.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}